@lucid-softworks/cache-tiered
v0.1.0
Published
Multi-tier CacheStore with read-through promotion and fan-out writes.
Maintainers
Readme
@lucid-softworks/cache-tiered
A multi-tier CacheStore for combinations such as process memory followed by
Redis. Reads search tiers in priority order and promote lower-tier hits into
every faster tier. Writes and deletes fan out concurrently.
const cache = new TieredCacheStore([
new MemoryCacheStore({ maxEntries: 5_000 }),
new RedisCacheStore(redis),
]);