Class SimpleCache<K,​V>

  • All Implemented Interfaces:
    Cache<K,​V>

    public class SimpleCache<K,​V>
    extends Object
    implements Cache<K,​V>
    • Constructor Detail

      • SimpleCache

        public SimpleCache​(int limit,
                           CacheType type)
      • SimpleCache

        public SimpleCache​(int limit)
    • Method Detail

      • put

        public void put​(K key,
                        V value)
        Specified by:
        put in interface Cache<K,​V>
      • get

        public V get​(K key)
        Specified by:
        get in interface Cache<K,​V>
      • getSilent

        public V getSilent​(K key)
        Specified by:
        getSilent in interface Cache<K,​V>
      • remove

        public void remove​(K key)
        Specified by:
        remove in interface Cache<K,​V>
      • size

        public int size()
        Specified by:
        size in interface Cache<K,​V>