MacrosΒ§
- record_
hit π - record_
hit_ πmut - record_
miss π - record_
miss_ πmut
StructsΒ§
- Cache
Shard - A bounded cache using a modified CLOCK-PRO eviction policy. The implementation allows some parallelism as gets donβt require exclusive access. Any evicted items are returned so they can be dropped by the caller, outside the locks.
- Placeholder π
- RefMut
- Structure wrapping a mutable reference to a cached item.
On drop, recomputes weight via the inner
WeightGuard. - Resident
- Weight
Guard π - Drop guard for
entry_or_placeholder: if the user callback panics after mutating the value, recomputes weight to keep shard accounting consistent.
EnumsΒ§
- Entry π
- Entry
Action - What to do with an existing entry after inspection/mutation.
- Entry
OrPlaceholder - Result of an entry-or-placeholder operation at the shard level.
- Insert
Strategy - Resident
State π
ConstantsΒ§
- MAX_F π