Configurable cache eviction strategies for the caching layer (Layer 8).
The caching layer stores query results behind a lock-free concurrent map and evicts entries according to a pluggable policy. Each document here describes one policy: its eviction criterion, the metadata it tracks, and the access patterns it serves best. For the layer overview and integration, see the caching layer index.
| Document | Purpose |
|---|---|
| lru.md | LRU (Least Recently Used) — evicts the least recently accessed entry; exploits temporal locality. |
| lfu.md | LFU (Least Frequently Used) — evicts the entry with the fewest accesses; frequency-based. |
| ttl.md | TTL (Time-to-Live) — evicts entries after a fixed expiry duration. |
| age.md | Age (FIFO) — evicts the oldest-inserted entry regardless of access. |
| cost-aware.md | CostAware — weights eviction by entry size / recomputation cost. |
| memory-pressure.md | MemoryPressure — evicts in response to system memory pressure signals. |
Status: Living reference.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |