axios-cache-adapter icon indicating copy to clipboard operation
axios-cache-adapter copied to clipboard

fix(limit): invalidate oldest cache when reaching limit size

Open zhenwenc opened this issue 3 years ago • 2 comments

When the number of cached requests reaches the configured limit, the oldest cached item should be removed from the store.

#247

zhenwenc avatar May 19 '21 04:05 zhenwenc

Codecov Report

Merging #248 (4d16e29) into master (2d51cee) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #248   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        13           
  Lines          235       238    +3     
=========================================
+ Hits           235       238    +3     
Impacted Files Coverage Δ
src/memory.js 100.00% <100.00%> (ø)
src/redis.js 100.00% <100.00%> (ø)
src/serialize.js 100.00% <0.00%> (ø)

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 2d51cee...4d16e29. Read the comment docs.

codecov[bot] avatar May 19 '21 04:05 codecov[bot]

cc @RasCarlito

cowboy-bebug avatar Oct 20 '21 00:10 cowboy-bebug