gsklee / ngStorage

localStorage and sessionStorage done right for AngularJS.
MIT License
2.33k stars 461 forks source link

Clear cache after a certain time? #201

Closed chrillewoodz closed 8 years ago

chrillewoodz commented 8 years ago

Is it possible to clear the cache set after 24h for example? Without doing some funky hack on every app start.

roybalderama commented 8 years ago

+1

egilkh commented 8 years ago

I think the best solution to this would be to create a cache layer on top of session/local storage. Which would be using it instead of putting more "responsibility" into this library. One such library (for angular) shouldn't be all too much work.