hyperlane-plugin-cache 22.11.0

A 64-way sharded bounded in-memory and HTTP response cache plugin for the Hyperlane framework with TTL, byte-budget eviction, single-flight stampede coalescing, pluggable CacheStore traits, and RFC Cache-Control/Vary/Age/X-Cache handling.
Documentation
1
2
3
4
5
6
7
8
# hyperlane-plugin-cache

High-concurrency response and data caching plugin for Hyperlane.

- 64-way `XxHash3_64` sharded in-memory cache (`ShardedMemoryCache`) enforcing both entry-count and total-byte memory budgets with lazy and explicit TTL eviction.
- Built-in single-flight stampede protection (`get_or_load`) coalescing concurrent misses on the same key via `tokio::sync::Notify`.
- Pluggable async `CacheStore` trait for Redis, Memcached, or tiered storage backends.
- HTTP response caching hooks (`CacheRequestHook` / `CacheResponseHook`) honoring `Cache-Control`, `Vary`, `Age`, and `X-Cache: HIT / MISS / BYPASS`.