Class SyncedLRUCache<K,​V>


  • public class SyncedLRUCache<K,​V>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private LRUCache<K,​V> cache  
    • Constructor Summary

      Constructors 
      Constructor Description
      SyncedLRUCache​(int capacity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V get​(K key)  
      void put​(K key, V value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SyncedLRUCache

        public SyncedLRUCache​(int capacity)
    • Method Detail

      • get

        public V get​(K key)
      • put

        public void put​(K key,
                        V value)