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§
- Cache
Stats - A point-in-time count of an
EntityCache’s contents. - Entity
Cache - Entity cache that maintains full projected entities with LRU eviction.
- Entity
Cache Config - Configuration for the entity cache
- Entity
Lifetime Checkpoint - The authoritative account lifetime known for one projected entity.
- Lifetime
Ordering - Independent ordering metadata attached to one projected cache write.
- Snapshot
Batch Config
Enums§
- Cache
Write - What
EntityCache::upsert_with_appenddid with a patch. - Patch
Origin - Whether a patch creates its entity, as far as its source says.
Functions§
- cmp_seq
- Compare two
_seqvalues numerically._seqformat is “{slot}:{offset}” where slot is not zero-padded. This handles digit-count boundaries correctly (e.g., 99999999 < 100000000).
Type Aliases§
- Entity
Lifetimes (view, key, checkpoint)in most-recently-changed order.- Entity
Tombstones - Legacy
(view, key, _seq)barriers, retained only to restore snapshots written before account positions had their own ordering domain.