- put
Insert into the cache
- containsKey
Does the cache contain the key?
- getIfPresent
Get from cache - or return null.
- keys
Iterate over all keys. Iterating over the keys requires the caller be
thread-safe.
- remove
Remove from cache - return true if key referenced an entry
- size
Current size of cache
- getOrFill
Get from cache, of not present, call the Callableto try to fill the cache. This
operation should be
- setDropHandler
Register a callback - called when an object is dropped from the cache (optional
operation)
- clear
- get
Get from cache - or return null. Implementations should state whether they are
thread-safe or not.