Package org.restheart.cache.impl
Class GuavaCache<K,V>
- java.lang.Object
-
- org.restheart.cache.impl.GuavaCache<K,V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.restheart.cache.Cache
Cache.EXPIRE_POLICY
-
-
Constructor Summary
Constructors Constructor Description GuavaCache(long size, Cache.EXPIRE_POLICY expirePolicy, long ttl)GuavaCache(long size, Cache.EXPIRE_POLICY expirePolicy, long ttl, Consumer<Map.Entry<K,Optional<V>>> remover)
-
-
-
Constructor Detail
-
GuavaCache
public GuavaCache(long size, Cache.EXPIRE_POLICY expirePolicy, long ttl)
-
-
Method Detail
-
invalidate
public void invalidate(K key)
- Specified by:
invalidatein interfaceCache<K,V>
-
-