Raxol.Terminal.Cache.EvictionHelpers (Raxol v0.5.0)

View Source

Helper functions for cache eviction strategies. Provides shared implementations for LRU, LFU, and FIFO eviction policies.

Summary

Functions

Evicts entries using the First In First Out (FIFO) policy.

Evicts entries using the Least Frequently Used (LFU) policy.

Evicts entries using the Least Recently Used (LRU) policy.

Functions

evict_fifo(cache, current_size, needed_size)

Evicts entries using the First In First Out (FIFO) policy.

evict_lfu(cache, current_size, needed_size)

Evicts entries using the Least Frequently Used (LFU) policy.

evict_lru(cache, current_size, needed_size)

Evicts entries using the Least Recently Used (LRU) policy.