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 TypeMethodDescriptionlong
Returns the estimated size provided by the underlying cache, -1 if not available.long
Returns the estimated weight provided by the underlying cache, -1 if not available.long
Returns the eviction count provided by the underlying cache, -1 if not available.long
Returns 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.void
Associates a value with the provided key.
-
Constructor Details
-
CaffeineCache
-
-
Method Details
-
estimatedSize
public long estimatedSize()Description copied from interface:Cache
Returns the estimated size provided by the underlying cache, -1 if not available.- Specified by:
estimatedSize
in interfaceCache<K,
V>
-
estimatedWeight
public long estimatedWeight()Description copied from interface:Cache
Returns the estimated weight provided by the underlying cache, -1 if not available.- Specified by:
estimatedWeight
in interfaceCache<K,
V>
-
evictionCount
public long evictionCount()Description copied from interface:Cache
Returns the eviction count provided by the underlying cache, -1 if not available.- Specified by:
evictionCount
in interfaceCache<K,
V>
-
evictionWeight
public long evictionWeight()Description copied from interface:Cache
Returns the eviction weight provided by the underlying cache, -1 if not available.- Specified by:
evictionWeight
in interfaceCache<K,
V>
-
get
Description copied from interface:Cache
Returns the value associated to a key.It returns null if the key is not present in the cache.
-
getAll
Description copied from interface:Cache
Returns the values associated to the keys.It returns only the entries that are already present in the cache.
-
put
Description copied from interface:Cache
Associates a value with the provided key.If the key is already present, it updates the value.
-
underlying
-