jmdobry / angular-cache

angular-cache is a very useful replacement for the Angular 1 $cacheFactory.
http://jmdobry.github.io/angular-cache
MIT License
1.39k stars 156 forks source link

What is the difference between maxAge and cacheFlushInterval? #245

Closed dmitry-kostin closed 1 year ago

dmitry-kostin commented 8 years ago

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

jmdobry commented 8 years ago

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.

dmitry-kostin commented 7 years ago

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