News for hackers. Stuff that matters.
Re:JavaScript caching framework for client side caching in t... by d0ugal on Sunday April 08, 2012 @09:40AM (#3813802)
Expiration was the main reason I created it. Also it will handle storing objects.
Re:JavaScript caching framework for client side caching in t... by huskyr on Sunday April 08, 2012 @09:43AM (#3813811)
Maybe 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 :)
Re:JavaScript caching framework for client side caching in t... by d0ugal on Sunday April 08, 2012 @09:54AM (#3813832)
Sure - I'll do that.
Re:JavaScript caching framework for client side caching in t... by rauar on Sunday April 08, 2012 @09:50AM (#3813827)
Storing objects in localStorage requires only 2 one-liners with JSON2.js (stringify() and parse() ).
Re:JavaScript caching framework for client side caching in t... by cheeaun on Sunday April 08, 2012 @10:12AM (#3813877)
Note that Amplify.js mentioned by sbarre, has expiration too.