fetch-cached

JSON →
library 2.0.3 ·javascript
verified Jun 7, 2026

A flexible cache wrapper around fetch that allows you to plug in any fetch implementation (e.g., node-fetch) and any cache backend (e.g., Redis, in-memory). Current stable version is 2.0.3. Releases are infrequent. Key differentiators: the cache interface is simple (get/set returning Promises), and cached responses are rehydrated with ok, url, status, statusText, .json(), and .text() methods. It does not ship its own caching logic but instead delegates to user-provided store.