What does this library offer over just using localStorage without a library? The browser API is already really easy, and with no fallbacks for IE<9 i don't really see any advantage in using this...
Expiration was the main reason I created it. Also it will handle storing objects.
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 :)
Sure - I'll do that.
Storing objects in localStorage requires only 2 one-liners with JSON2.js (stringify() and parse() ).
Note that Amplify.js mentioned by sbarre, has expiration too.