@wild-framework/cache
v0.1.0
Published
Cache abstraction for Wild Framework.
Readme
@wild-framework/cache
Cache abstraction for Wild Framework.
Install
pnpm add @wild-framework/cacheUsage
import { Cache } from "@wild-framework/cache";
await cache.set("user:1", user, 60_000); // TTL in ms
const cached = await cache.get("user:1");
await cache.has("user:1");
await cache.delete("user:1");
await cache.flush();Ships with an in-memory driver with TTL support. Implement CacheDriver for Redis.
License
MIT
