NextCache is a server-side rendering cache service designed for clustering and distributed applications. It provides a WebSocket-based client-server architecture for caching SSR data, with TTL support and async value resolution. Version 1.3.3 requires Node.js 10.15.3 and npm 6.4.1. Compared to other caching solutions, NextCache is specialized for SSR caching and uses WebSockets for real-time communication.
npm install next-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates starting a NextCache server and using the client to fetch cached data with a TTL of 1 hour.
Upgrade Node.js to version 10.15.3+.
Consider migrating to an actively maintained caching solution like ioredis or lru-cache.
Always await client.connect() before using client.get().
Install 'ws' via npm install ws and ensure Node.js >= 10.15.3.
Start the server first and verify the WebSocket URL (e.g., ws://localhost:666).
Ensure you create a new Client and await connect() after instantiation.