angelnikolov / ts-cacheable

Observable/Promise Cache Decorator
https://npmjs.com/package/ts-cacheable
ISC License
340 stars 42 forks source link

Added update and remove methods to storage strategies. #99

Closed angelnikolov closed 3 years ago

angelnikolov commented 3 years ago

@damianroszyk can you check this out. Will this suffice to your needs?

codecov[bot] commented 3 years ago

Codecov Report

Merging #99 (518b1e6) into master (5561ed9) will decrease coverage by 6.64%. The diff coverage is 61.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #99      +/-   ##
==========================================
- Coverage   82.45%   75.80%   -6.65%     
==========================================
  Files          12       12              
  Lines         285      310      +25     
  Branches       70       80      +10     
==========================================
  Hits          235      235              
- Misses         41       60      +19     
- Partials        9       15       +6     
Impacted Files Coverage Δ
cacheable.decorator.ts 93.33% <0.00%> (-5.00%) :arrow_down:
common/IAsyncStorageStrategy.ts 100.00% <ø> (ø)
common/IStorageStrategy.ts 100.00% <ø> (ø)
promise.cacheable.decorator.ts 90.00% <0.00%> (-4.29%) :arrow_down:
common/DOMStorageStrategy.ts 27.27% <42.85%> (-1.62%) :arrow_down:
common/LocalStorageStrategy.ts 69.09% <92.85%> (-10.91%) :arrow_down:
common/InMemoryStorageStrategy.ts 86.36% <100.00%> (-13.64%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5561ed9...518b1e6. Read the comment docs.