Developer builds unified cache engine running on both server and browser via WebAssembly
A developer has released Recached, an open-source cache server written in Rust that addresses the common problem of maintaining separate caching layers on the server and in the browser. The server component speaks Redis's RESP wire protocol, making it compatible with existing Redis clients without code changes. Its core evaluation engine compiles to both native code for the server and WebAssembly for the browser, allowing the browser tab itself to act as a live cache replica rather than repeatedly fetching from a remote source. A WebSocket layer synchronises state between server and connected clients in real time, replacing traditional polling, while offline writes are queued in IndexedDB and replayed on reconnection. The developer notes the server-side component is production-ready, but the browser sync layer is currently in beta and has not yet undergone a third-party security review.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in