| 程序包 | 说明 |
|---|---|
| org.springframework.cache | |
| org.springframework.cache.caffeine | |
| org.springframework.cache.support |
| 限定符和类型 | 方法和说明 |
|---|---|
Cache.ValueWrapper |
Cache.get(Object key)
Return the value to which this cache maps the specified key.
|
default Cache.ValueWrapper |
Cache.putIfAbsent(Object key,
Object value)
Atomically associate the specified value with the specified key in this cache
if it is not set already.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Cache.ValueWrapper |
CaffeineCache.putIfAbsent(Object key,
Object value) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
SimpleValueWrapper
Straightforward implementation of
Cache.ValueWrapper,
simply holding the value as given at construction and returning it from SimpleValueWrapper.get(). |
| 限定符和类型 | 方法和说明 |
|---|---|
Cache.ValueWrapper |
AbstractValueAdaptingCache.get(Object key) |
protected Cache.ValueWrapper |
AbstractValueAdaptingCache.toValueWrapper(Object storeValue)
Wrap the given store value with a
SimpleValueWrapper, also going
through AbstractValueAdaptingCache.fromStoreValue(java.lang.Object) conversion. |
Copyright © 2022. All rights reserved.