Expand description
Cache Backend Traits
This module defines the trait abstractions that allow users to implement custom cache backends for both L1 (in-memory) and L2 (distributed) caches.
§Architecture
CacheBackend: Core trait for all cache implementationsL2CacheBackend: Extended trait for L2 caches with TTL introspectionStreamingBackend: Optional trait for event streaming capabilities
§Example: Custom L1 Backend
Traits§
- Cache
Backend - Core cache backend trait for both L1 and L2 caches
- L2Cache
Backend - Extended trait for L2 cache backends with TTL introspection
- Streaming
Backend - Optional trait for cache backends that support event streaming