High-performance cache policies and supporting data structures.
Spec maturity: stub
Executable oracle: invariant checks on
CarCore; no fullPolicyModelyet.
Clock with Adaptive Replacement (CAR): clock-based scan with adaptive hand and ghost entries. Victim is not uniquely determined from residency alone.
| Check | When |
|---|---|
len <= capacity |
After every Op |
debug_validate_invariants() |
After every Op on CarCore |
Op adapter behaviorOp |
Effect |
|---|---|
Insert(k) |
insert(k, v) |
Get(k) |
get(k) |
Peek(k) |
peek(k) |
Remove(k) |
remove(k) |
GetMut / Touch / EvictOne |
No-op in adapter |
OracleExpectation::Legal).