Class CaffeineCache<K,V>
java.lang.Object
com.here.platform.data.client.v2.caching.caffeine.model.CaffeineCache<K,V>
- All Implemented Interfaces:
Cache<K,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the estimated size provided by the underlying cache, -1 if not available.longReturns the estimated weight provided by the underlying cache, -1 if not available.longReturns the eviction count provided by the underlying cache, -1 if not available.longReturns the eviction weight provided by the underlying cache, -1 if not available.Returns the value associated to a key.Returns the values associated to the keys.voidAssociates a value with the provided key.
-
Constructor Details
-
CaffeineCache
-
-
Method Details
-
estimatedSize
public long estimatedSize()Description copied from interface:CacheReturns the estimated size provided by the underlying cache, -1 if not available.- Specified by:
estimatedSizein interfaceCache<K,V>
-
estimatedWeight
public long estimatedWeight()Description copied from interface:CacheReturns the estimated weight provided by the underlying cache, -1 if not available.- Specified by:
estimatedWeightin interfaceCache<K,V>
-
evictionCount
public long evictionCount()Description copied from interface:CacheReturns the eviction count provided by the underlying cache, -1 if not available.- Specified by:
evictionCountin interfaceCache<K,V>
-
evictionWeight
public long evictionWeight()Description copied from interface:CacheReturns the eviction weight provided by the underlying cache, -1 if not available.- Specified by:
evictionWeightin interfaceCache<K,V>
-
get
Description copied from interface:CacheReturns the value associated to a key.It returns null if the key is not present in the cache.
-
getAll
Description copied from interface:CacheReturns the values associated to the keys.It returns only the entries that are already present in the cache.
-
put
Description copied from interface:CacheAssociates a value with the provided key.If the key is already present, it updates the value.
-
underlying
-