Class PLRUCache

java.lang.Object
NetStrategies.CacheStrategy
NetStrategies.CacheStrategies.PLRUCache
All Implemented Interfaces:
AutoCheck

public class PLRUCache extends CacheStrategy
PLRU (Pseudo Least Recently Used) cache eviction strategy: approximates LRU behaviour at a lower implementation cost.
  • Constructor Details

    • PLRUCache

      public PLRUCache()
  • Method Details

    • getRemoveItem

      public CacheItem getRemoveItem(LinkedList<CacheItem> caches)
      For CPU caches with large associativity (generally > four ways), the implementation cost of LRU becomes prohibitive. PLRU (Pseudo-LRU) approximates the behavior of the more computationally expensive Least Recently Used (LRU) algorithm but with lower implementation complexity.
      Specified by:
      getRemoveItem in class CacheStrategy
      Parameters:
      caches - the list of the cached items.
      Returns: