Example usage for Java org.springframework.cache Cache fields, constructors, methods, implement or subclass
The text is from its open source code.
void | clear() Clear the cache through removing all mappings. |
void | evict(Object key) Evict the mapping for this key from this cache if it is present. |
ValueWrapper | get(Object key) Return the value to which this cache maps the specified key. |
T | get(Object key, @Nullable Class Return the value to which this cache maps the specified key, generically specifying a type that return value will be cast to. |
T | get(Object key, Callable Return the value to which this cache maps the specified key, obtaining that value from valueLoader if necessary. |
Class> | getClass() Returns the runtime class of this Object . |
String | getName() Return the cache name. |
Object | getNativeCache() Return the underlying native cache provider. |
void | put(Object key, @Nullable Object value) Associate the specified value with the specified key in this cache. |
ValueWrapper | putIfAbsent(Object key, @Nullable Object value) Atomically associate the specified value with the specified key in this cache if it is not set already. |