angular-local-storage icon indicating copy to clipboard operation
angular-local-storage copied to clipboard

Need localStorage to be able to expire?

Open xiaoyuze88 opened this issue 8 years ago • 2 comments

In my cases, I use localStorage as temporary data cache. However, I need those data can be expired too. Now I will never know when those data is gonna expire unless I save the updating time in the data structure. So I think maybe these can be wrapped into the setter/getter functions? Thanks!

xiaoyuze88 avatar Mar 31 '16 10:03 xiaoyuze88

Yes, I want it too.

chenjianjx avatar May 23 '16 06:05 chenjianjx

Yes. That is still needed. Additionally I wanted to use this instead of angular-cookies but unfortunately, I cannot set an exact expiration date for a cookie (days value is not good enough)

ghost avatar Jun 17 '17 18:06 ghost