W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2010

[whatwg] localStorage cache expiry

From: Ben Schwarz <ben.schwarz@gmail.com>
Date: Tue, 7 Dec 2010 19:57:54 +1100
Message-ID: <92CC0863D5C3490BBC996C8CA9276361@gmail.com>
 Hi All, 


Last week I put together a small javascript library titled "cache.js", which is basically localStorage?only, with cache expiry.


https://github.com/benschwarz/cache.js


This somewhat mimics the cache expiry patterns seen elsewhere on the web, especially with key/value stores such as memcached. 


I know that the question of doing this within the HTML spec has been discussed before? (http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-July/027429.html) so I figured it would be worth posting to this list. 


I realise that my library doesn't expire keys until they're 'called' (read the source), but I'm happy to accept contributions or discuss API features with anyone who decides that cache.js doesn't do what they're interested in? 


>From there?I'd think it to be feasible to share the findings with the whatwg/w3c in an effort to extend the current scope of localStorage/sessionStorage.



I'm looking for feedback and discussion that will aid the HTML5 storage specification, with real software as a form of user requirement, rather than imagination. 



Cheers, 


Ben Schwarz


--
+ germanforblack.com
+ ab-c.com.au

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20101207/65a828ac/attachment.htm>
Received on Tuesday, 7 December 2010 00:57:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:02 UTC