4 ms·
Expiration is the first thing that comes to mind
by binarymax 15y ago
Expiration is the first thing that comes to mind
- d0ugal 15y agoExpiration was the main reason I created it. Also it will handle storing objects.
- huskyr 15y agoMaybe it would be an idea to state that clearly in the readme on Github? I guess it's probably obvious for people who know memcache, but for a frontend developer the library seems like a general localStorage wrapper. Your library deserves more than that :)
- d0ugal 15y agoSure - I'll do that.
- rauar 15y agoStoring objects in localStorage requires only 2 one-liners with JSON2.js (stringify() and parse() ).
- cheeaun 15y agoNote that Amplify.js mentioned by sbarre, has expiration too.