类 ForestCache<K,V>

java.lang.Object
com.dtflys.forest.utils.ForestCache<K,V>

public class ForestCache<K,V> extends Object
  • 构造器详细资料

    • ForestCache

      public ForestCache(long maxSize, Duration expireAfterAccess)
    • ForestCache

      public ForestCache(long maxSize, long expireAfterAccess, TimeUnit timeUnit)
    • ForestCache

      public ForestCache(long maxSize)
  • 方法详细资料

    • size

      public int size()
    • evictionCount

      public long evictionCount()
    • isEmpty

      public boolean isEmpty()
    • containsKey

      public boolean containsKey(K key)
    • containsValue

      public boolean containsValue(V value)
    • get

      public V get(K key)
    • put

      public void put(K key, V value)
    • putAll

      public void putAll(@NotNull Map<? extends K,? extends V> m)
    • clear

      public void clear()
    • toMap

      public Map<K,V> toMap()
    • keySet

      public Set<K> keySet()
    • values

      public Collection<V> values()
    • entrySet

      public Set<Map.Entry<K,V>> entrySet()