Package | Description |
---|---|
org.springframework.cache |
Spring's generic cache abstraction.
|
org.springframework.cache.caffeine |
Support classes for the open source cache in
Caffeine library,
allowing to set up Caffeine caches within Spring's cache abstraction.
|
org.springframework.cache.concurrent |
Implementation package for
java.util.concurrent based caches. |
org.springframework.cache.ehcache |
Support classes for the open source cache
EhCache 2.x,
allowing to set up an EhCache CacheManager and Caches
as beans in a Spring context.
|
org.springframework.cache.interceptor |
AOP-based solution for declarative caching demarcation.
|
org.springframework.cache.jcache |
Implementation package for JSR-107 (javax.cache aka "JCache") based caches.
|
org.springframework.cache.support |
Support classes for the org.springframework.cache package.
|
org.springframework.cache.transaction |
Transaction-aware decorators for the org.springframework.cache package.
|
Modifier and Type | Method and Description |
---|---|
Cache.ValueWrapper |
Cache.get(java.lang.Object key)
Return the value to which this cache maps the specified key.
|
Cache.ValueWrapper |
Cache.putIfAbsent(java.lang.Object key,
java.lang.Object value)
Atomically associate the specified value with the specified key in this cache
if it is not set already.
|
Modifier and Type | Method and Description |
---|---|
Cache.ValueWrapper |
CaffeineCache.get(java.lang.Object key) |
Cache.ValueWrapper |
CaffeineCache.putIfAbsent(java.lang.Object key,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
Cache.ValueWrapper |
ConcurrentMapCache.putIfAbsent(java.lang.Object key,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
Cache.ValueWrapper |
EhCacheCache.get(java.lang.Object key) |
Cache.ValueWrapper |
EhCacheCache.putIfAbsent(java.lang.Object key,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
protected Cache.ValueWrapper |
AbstractCacheInvoker.doGet(Cache cache,
java.lang.Object key)
Execute
Cache.get(Object) on the specified Cache and
invoke the error handler if an exception occurs. |
Modifier and Type | Method and Description |
---|---|
Cache.ValueWrapper |
JCacheCache.putIfAbsent(java.lang.Object key,
java.lang.Object value) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleValueWrapper
Straightforward implementation of
Cache.ValueWrapper ,
simply holding the value as given at construction and returning it from SimpleValueWrapper.get() . |
Modifier and Type | Method and Description |
---|---|
Cache.ValueWrapper |
AbstractValueAdaptingCache.get(java.lang.Object key) |
Cache.ValueWrapper |
NoOpCache.get(java.lang.Object key) |
Cache.ValueWrapper |
NoOpCache.putIfAbsent(java.lang.Object key,
java.lang.Object value) |
protected Cache.ValueWrapper |
AbstractValueAdaptingCache.toValueWrapper(java.lang.Object storeValue)
Wrap the given store value with a
SimpleValueWrapper , also going
through AbstractValueAdaptingCache.fromStoreValue(java.lang.Object) conversion. |
Modifier and Type | Method and Description |
---|---|
Cache.ValueWrapper |
TransactionAwareCacheDecorator.get(java.lang.Object key) |
Cache.ValueWrapper |
TransactionAwareCacheDecorator.putIfAbsent(java.lang.Object key,
java.lang.Object value) |