@mr-aftab-ahmad-khan/cachemesh
v0.1.0
Published
Express response caching with TTL, key rules, invalidation, Redis-ready stores.
Maintainers
Readme
cachemesh
Express caching middleware with TTL, custom cache keys, and invalidate(). Ships with an in-memory store; swap in Redis by implementing CacheStore.
import express from "express";
import { cachemesh } from "@mr-aftab-ahmad-khan/cachemesh";
const app = express();
const apiCache = cachemesh({ ttlMs: 30_000 });
app.get("/users", apiCache, (_req, res) => res.json([]));License
MIT
