Expand description
Per-entry options (EntryOptions) and their supporting value types.
This is the Rust counterpart of FusionCache’s FusionCacheEntryOptions.
Every field carries the same default as FusionCache (see docs/PARITY.md),
with two deliberate, type-driven improvements:
- timeouts are a
Timeoutenum rather than a-1msnegative sentinel; - the eager-refresh threshold is an
EagerThresholdnewtype that can only hold a value in the open interval(0, 1).
Structs§
- Eager
Threshold - A validated eager-refresh threshold: a fraction strictly between 0 and 1.
- Entry
Options - Options controlling how a single entry is cached.
Enums§
- KeyModifier
Mode - How the L2 wire-format version is combined with a cache key, mirroring
FusionCache’s
CacheKeyModifierMode. - Priority
- Memory-eviction priority hint, mirroring
CacheItemPriority. - Remove
ByTag Behavior - What
Cache::remove_by_tagdoes to matched entries.