Chapter 6. Eviction Policies

Chapter 6. Eviction Policies

6.1. Eviction Policy Plugin
6.2. TreeCache Eviction Policy Configuration
6.3. TreeCache LRU eviction policy implementation
6.4. TreeCache FIFO eviction policy implementation
6.5. TreeCache MRU eviction policy implementation
6.6. TreeCache LFU eviction policy implementation

Eviction policies specify the behavior of a node residing inside the cache, e.g., life time and maximum numbers allowed. Memory constraints on servers mean caches cannot grow indefinitely, so policies need to be in place to restrict the size of the cache in memory.