<div>
                        Hi All, </div><div><br></div><div><span id="goog_2046845748"></span><span id="goog_2046845749"></span><span id="goog_2046845750"></span><span id="goog_2046845751"></span>Last week I put together a small javascript library titled "cache.js", which is basically localStorage—only, with cache expiry.<span id="goog_2046845777"></span></div><div><span id="goog_2046845778"></span><span id="goog_2046845779"></span><br></div><div><a href="https://github.com/benschwarz/cache.js">https://github.com/benschwarz/cache.js</a></div><div><br></div><div><span id="goog_2046845756"></span><span id="goog_2046845757"></span><span id="goog_2046845758"></span><span id="goog_2046845759"></span>This somewhat mimics the cache expiry patterns seen elsewhere on the web, especially with key/value stores such as memcached.  <span id="goog_2046845760"></span><span id="goog_2046845761"></span></div><div><span id="goog_2046845762"></span><span id="goog_2046845763"></span><br></div><div>I know that the question of doing this within the HTML spec has been discussed before— (<a href="http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-July/027429.html">http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2010-July/027429.html</a>) so I figured it would be worth posting to this list. <span id="goog_2046845764"></span><span id="goog_2046845765"></span></div><div><span id="goog_2046845766"></span><span id="goog_2046845767"></span><br></div><div>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… </div><div><br></div><div><span id="goog_2046845784"></span><span id="goog_2046845785"></span><span id="goog_2046845786"></span><span id="goog_2046845787"></span>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.</div><div><span id="goog_2046845773"></span></div><div><span id="goog_2046845804"></span><span id="goog_2046845805"></span><br><span id="goog_2046845774"></span></div><div>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. </div><div><span id="goog_2046845808"></span></div><div><br></div><div id="CA5261FBB84549B6AE810E72F6A5B4D7"><div>Cheers, </div><div><br></div><div><span id="goog_2046845790"></span><span id="goog_2046845791"></span><span id="goog_2046845792"></span><span id="goog_2046845793"></span>Ben Schwarz<span id="goog_2046845794"></span><span id="goog_2046845795"></span></div><div><br></div><div><span id="goog_2046845796"></span><span id="goog_2046845797"></span><span id="goog_2046845800"></span><span id="goog_2046845801"></span>--</div><div>+ germanforblack.com<span id="goog_2046845798"></span><span id="goog_2046845799"></span></div><div>+ ab-c.com.au</div></div>