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

maxAge is not working #268

Open cullsin opened 7 years ago

cullsin commented 7 years ago

Hi,

The following code is not working and the cache persists even after maxAge. Can you suggest me what might be missing.

CacheFactory.createCache(cacheName, { storagePrefix: 'tmng.', deleteOnExpire: 'aggressive', maxAge: 2 storageMode: 'localStorage' }

Thanks, Raja K