title: Caching data locally (in browser) received using Socket.io?
body: <p><strong>Is there a library/project which smooths over the process of caching some json data in the browser when using socket.io?</strong>  I guess <strong><em>what I really mean is</em></strong>, is there a github/opensource project already out there focused on this task so that a developer could more or less drop it into any socket.io project?</p>
  
  <p>For example, let's say I am getting tabular data for a page and the data is received by using socket.io.  I want the data to remain cached so that I can save a server request if the user reloads the browser. </p>
  
  <p>Additionally, I'd want this to happen more or less without me having to manually create cache variables, like: <a href="http://davidwalsh.name/cache-ajax" rel="nofollow">http://davidwalsh.name/cache-ajax</a> . I want the socket.io cache library to be able to do this for me.</p>
  
  <p>I want to occasionally &amp; easily be able to clear the cache if it changed on the server. So, let's assume for that what I'm looking for has a method for analyzing timestamps on when the remote data was modified.  What I mean is, let's assume for now that there is a way of notifying the browser when database table/rows/documents have been modified so that it knows when to clear the socket.io cache (perhaps sending meta information about database table modify timestamps along with data requests or maybe with an occasional comet-type message).</p>