Skip to content

This release adds 2 notable features for engineering teams evaluating rollout.

Published 3mo Caching
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

cache-manager cache memory-cache multi-layer-cache nodejs redis
+2 more
stampede-prevention typescript

Summary

AI summary

Fixed CacheStack graceful degradation on coordinator failure.

Full changelog

Added

  • Real Redis-backed benchmark harnesses for direct cache behavior, HTTP throughput, edge cases, slow Redis, queue amplification, and multi-process fan-out.
  • New benchmark utility coverage and Redis single-flight coordinator tests.

Changed

  • Version bumped from 1.2.9 to 1.3.0.
  • README.md now reflects the current validation baseline with 431 passing tests.

Fixed

  • RedisLayer and RedisSingleFlightCoordinator now support per-command Redis timeouts via commandTimeoutMs.
  • CacheStack now degrades gracefully when the distributed single-flight coordinator fails and preserves local single-flight collapse for concurrent misses.
  • StampedeGuard now shares in-flight promises across concurrent callers instead of serializing them through a mutex queue.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track flyingsquirrel0419/layercache

Get notified when new releases ship.

Sign up free

About flyingsquirrel0419/layercache

All releases →

Related context

Related tools

Earlier breaking changes

  • v4.0.0 Write coordination applies finite default limits and can reject saturated work with CacheWriteSaturationError.
  • v4.0.0 Automatically derived structured `wrap()` keys now use the `j2:` schema; old `j:` entries become cold misses and expire naturally.
  • v4.0.0 Read-through fetchers now cache null as a regular value by default; `getOrThrow()` returns stored nulls while throwing only for undefined.
  • v4.0.0 Public CacheStack reads now return undefined for misses and negative-cache entries instead of null.

Beta — feedback welcome: [email protected]