Java org.springframework.cache Cache fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.cache Cache fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.cache Cache.

The text is from its open source code.

Implementation

org.springframework.cache.Cache has the following implementations.
Click this link to see all its implementation.

Method

voidclear()
Clear the cache through removing all mappings.
voidevict(Object key)
Evict the mapping for this key from this cache if it is present.
ValueWrapperget(Object key)
Return the value to which this cache maps the specified key.
Tget(Object key, @Nullable Class type)
Return the value to which this cache maps the specified key, generically specifying a type that return value will be cast to.
Tget(Object key, Callable valueLoader)
Return the value to which this cache maps the specified key, obtaining that value from valueLoader if necessary.
ClassgetClass()
Returns the runtime class of this Object .
StringgetName()
Return the cache name.
ObjectgetNativeCache()
Return the underlying native cache provider.
voidput(Object key, @Nullable Object value)
Associate the specified value with the specified key in this cache.
ValueWrapperputIfAbsent(Object key, @Nullable Object value)
Atomically associate the specified value with the specified key in this cache if it is not set already.