Class SimpleCache<K,​V>

java.lang.Object
org.apache.groovy.json.internal.SimpleCache<K,​V>
All Implemented Interfaces:
Cache<K,​V>

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

    • SimpleCache

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

      public SimpleCache​(int limit)
  • Method Details

    • 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>
    • toString

      public String toString()
      Overrides:
      toString in class Object