Interface LRUCache<K,V>

All Superinterfaces:
Map<K,V>

public interface LRUCache<K,V> extends Map<K,V>
A least-recently-used cache.
  • Method Details

    • cleanUp

      void cleanUp()
      Clears the cache
    • resetStatistics

      void resetStatistics()
      Reset usage statistics
    • getEvicted

      long getEvicted()
      Gets the number of evicted elements
    • getMisses

      long getMisses()
      Gets the number of cache misses.
    • getHits

      long getHits()
      Gets the number of cache hits.
    • getMaxCacheSize

      int getMaxCacheSize()
      Maximum cache capacity.