Explore tens of thousands of sets crafted by our community.
Caching Strategies
6
Flashcards
0/6
Least Recently Used (LRU)
LRU removes the least recently accessed item when the cache is full. It's useful when recently used data is more likely to be accessed again.
Most Recently Used (MRU)
MRU evicts the most recently used item. It can be effective in situations where the oldest records are more likely to be accessed.
Random Replacement (RR)
RR randomly selects a cache entry to replace. This strategy is simple to implement and can be used when no pattern in fetched data can be utilized.
Time To Live (TTL)
TTL expires items after a certain time period. This caching strategy is useful for storing items that need to be updated or invalidated regularly.
Least Frequently Used (LFU)
LFU discards the least frequently used items first. It's best used when long-term access patterns are important.
First In, First Out (FIFO)
FIFO removes items in the order they were added, without considering how often or recently they were accessed. Suited for caches where the age of the data is the determining factor.
© Hypatia.Tech. 2024 All rights reserved.