Class LFUCache<T>

  • All Implemented Interfaces:
    ICache<T>

    public class LFUCache<T>
    extends java.lang.Object
    implements ICache<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      LFUCache​(int cacheSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clean()  
      T get​(java.lang.String key)  
      void put​(java.lang.String key, T val)  
      • Methods inherited from class java.lang.Object

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

      • LFUCache

        public LFUCache​(int cacheSize)
    • Method Detail

      • get

        public T get​(java.lang.String key)
        Specified by:
        get in interface ICache<T>
      • put

        public void put​(java.lang.String key,
                        T val)
        Specified by:
        put in interface ICache<T>
      • clean

        public void clean()
        Specified by:
        clean in interface ICache<T>