Is there a library or project that simplifies the caching of JSON data in the browser while using socket.io? Essentially, I'm wondering if there is an existing open-source solution specifically designed for this task, allowing developers to easily integrate it into any socket.io project.
For instance, imagine I am receiving tabular data via socket.io for a webpage. I would like the data to be cached so that if a user reloads the browser, a server request can be saved.
Moreover, I prefer not to manually create cache variables as mentioned in this article: http://davidwalsh.name/cache-ajax. Rather, I envision a socket.io cache library handling this process automatically for me.
I also want the ability to easily clear the cache when changes occur on the server. Therefore, I anticipate the solution I seek including a method for analyzing timestamps to determine when the remote data was last modified. This would involve mechanisms to notify the browser about modifications made to database tables/rows/documents, enabling the cache to be cleared accordingly (possibly by sending metadata along with data requests or through periodic comet-style messages).