angular-cache icon indicating copy to clipboard operation
angular-cache copied to clipboard

What is the difference between maxAge and cacheFlushInterval?

Open dmitry-kostin opened this issue 9 years ago • 2 comments

Hey guys, Can anybody tell me exactly what's the difference between maxAge and cacheFlushInterval ?

dmitry-kostin avatar Oct 13 '16 09:10 dmitry-kostin

cacheFlushInterval delete everything in the cache at once, on an interval. maxAge represents how long individual items can be in the cache until their expire. The cache's behavior toward expired items is determined by the deleteOnExpire setting.

jmdobry avatar Oct 13 '16 14:10 jmdobry

@jmdobry forgot to say thank you, I appreciate it even a year after :)

dmitry-kostin avatar Sep 28 '17 08:09 dmitry-kostin