cachemeshx
v0.2.0
Published
Express response caching with TTL, key rules, invalidation, Redis-ready stores.
Maintainers
Readme
cachemesh
Topics: cache · cachemesh · express · mern · mern-packages · merndev · middleware · nodejs · npm-pm · observability · redis · typescript
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 "cachemesh";
const app = express();
const apiCache = cachemesh({ ttlMs: 30_000 });
app.get("/users", apiCache, (_req, res) => res.json([]));License
MIT
