Class MemoryCache<K,​T>

  • Type Parameters:
    K - type of key
    T - type of value

    public class MemoryCache<K,​T>
    extends Object
    Local cache to store admin token
    Since:
    1.0.0
    Author:
    Urvil Joshi
    • Constructor Detail

      • MemoryCache

        public MemoryCache​(int maxItems)
    • Method Detail

      • put

        public void put​(K key,
                        T value)
      • get

        public T get​(K key)
      • remove

        public void remove​(K key)
      • size

        public int size()