@ecfjs/cache
v1.0.0-rc.2
Published
ECF cache layer with stampede protection, multi-driver support, and tagged cache invalidation
Maintainers
Readme
@ecfjs/cache — Multi-Driver Cache Platform
@ecfjs/cache is the multi-driver caching platform for the ECF (Elegant Core Framework) ecosystem.
Features
- Multi-Driver — Memory, File, Redis, and Null drivers
- CacheLock — atomic lock acquisition for stampede protection
- TaggedCache — tag-based cache invalidation
- CacheStampedeProtection — thundering herd mitigation
- CacheFacade — static proxy via
@ecfjs/corefacade system
Quick Start
import { Application } from "@ecfjs/core";
import { CacheServiceProvider, Cache } from "@ecfjs/cache";
const app = new Application();
app.register(CacheServiceProvider);
app.boot();
await Cache.put("user:1", { name: "Alice" }, 3600);
const user = await Cache.get("user:1");Documentation
- ARCHITECTURE.md — package architecture
License
MIT
