Class MemoryCache<K,T>

java.lang.Object
io.mosip.kernel.auth.defaultimpl.util.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 Details

    • MemoryCache

      public MemoryCache(int maxItems)
  • Method Details

    • put

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

      public T get(K key)
    • remove

      public void remove(K key)
    • size

      public int size()