public interface Cache
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear deletes all items stored in the cache.
|
void |
delete(java.lang.String key)
Delete removes the specific key from the cache.
|
java.lang.Boolean |
get(java.lang.String key)
Get returns the result for the given key.
|
boolean |
set(java.lang.String key,
boolean value,
java.lang.Object... extra)
Set puts key and value into cache.
|
boolean set(java.lang.String key,
boolean value,
java.lang.Object... extra)
key - the key to storevalue - the value to storeextra - additional parameters (e.g., expiration time)java.lang.Boolean get(java.lang.String key)
key - the key to retrievevoid delete(java.lang.String key)
key - the key to deletevoid clear()
Copyright © 2017–2025. All rights reserved.