Skip to main content

Module cache

Module cache 

Source
Expand description

Entity cache for snapshot-on-subscribe functionality.

This module provides an EntityCache that maintains full projected entities in memory with LRU eviction. When a new client subscribes, they receive cached snapshots immediately rather than waiting for the next live mutation.

Structs§

CacheStats
EntityCache
Entity cache that maintains full projected entities with LRU eviction.
EntityCacheConfig
Configuration for the entity cache
SnapshotBatchConfig

Functions§

cmp_seq
Compare two _seq values numerically. _seq format is “{slot}:{offset}” where slot is not zero-padded. This handles digit-count boundaries correctly (e.g., 99999999 < 100000000).