ObjectKache
An interface that represents a cache that holds entries in memory without serialization.
Inheritors
Properties
Functions
Clears the cache, calling EntryRemovedListener on each removed entry with evicted
set to false
.
Removes all expired keys and their corresponding values from the cache.
Returns a KacheKeys object containing all keys in the cache, including under-creation keys.
Returns the value corresponding to the given key, or null
if such a key is not present in the cache.
Returns the value corresponding to the given key, or defaultValue if such a key is not present in the cache.
Returns the value corresponding to the given key if it exists or is currently being created, or defaultValue otherwise.
Returns a read-only Set of keys currently under creation.
Cancels all in-progress creations.
Remove entries from the cache until the size is less than or equal to size.