Skip to main content

Module options

Module options 

Source
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 Timeout enum rather than a -1ms negative sentinel;
  • the eager-refresh threshold is an EagerThreshold newtype that can only hold a value in the open interval (0, 1).

Structs§

EagerThreshold
A validated eager-refresh threshold: a fraction strictly between 0 and 1.
EntryOptions
Options controlling how a single entry is cached.

Enums§

KeyModifierMode
How the L2 wire-format version is combined with a cache key, mirroring FusionCache’s CacheKeyModifierMode.
Priority
Memory-eviction priority hint, mirroring CacheItemPriority.
RemoveByTagBehavior
What Cache::remove_by_tag does to matched entries.