Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

Caching Strategies

6

Flashcards

0/6

Still learning
StarStarStarStar

Least Recently Used (LRU)

StarStarStarStar

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.

StarStarStarStar

Most Recently Used (MRU)

StarStarStarStar

MRU evicts the most recently used item. It can be effective in situations where the oldest records are more likely to be accessed.

StarStarStarStar

Random Replacement (RR)

StarStarStarStar

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.

StarStarStarStar

Time To Live (TTL)

StarStarStarStar

TTL expires items after a certain time period. This caching strategy is useful for storing items that need to be updated or invalidated regularly.

StarStarStarStar

Least Frequently Used (LFU)

StarStarStarStar

LFU discards the least frequently used items first. It's best used when long-term access patterns are important.

StarStarStarStar

First In, First Out (FIFO)

StarStarStarStar

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.

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.