How does cache eviction strategy LRU (Least Recently Used) work?

  • LRU removes the item that was accessed most recently.
  • LRU removes the item that was accessed least recently.
  • LRU removes the item with the smallest key.
  • LRU removes items randomly.
LRU (Least Recently Used) eviction strategy removes the item from the cache that was accessed the least recently. This ensures that the cache retains the most recently accessed items, optimizing for cache hits.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *