protected class AbstractRedisCacheManager.RedisCacheObject extends AbstractCacheManager.AbstractCacheObject<K>
| 限定符 | 构造器和说明 |
|---|---|
protected |
RedisCacheObject(String name,
long expireTime,
TimeUnit timeUnit) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
Clear all cache value.
|
@Nullable Object |
get(K key)
Get the cache according to the key value.
|
Map<K,Object> |
getAll(Iterable<K> keys)
Get all cache according to the key values.
|
void |
put(K key,
Object value)
Add cache value.
|
void |
putAll(Map<K,Object> caches)
Add all cache value.
|
void |
putIfAbsent(K key,
Object value)
Add cache value if it does not exist.
|
void |
remove(K key)
Remove cache value.
|
void |
removeAll(Iterable<K> keys)
Remove all cache value.
|
getName, isInvalid, setInvalidpublic void clear()
public Map<K,Object> getAll(Iterable<K> keys)
keys - keyspublic @Nullable Object get(K key)
key - keypublic void putIfAbsent(K key, Object value)
key - keyvalue - cache valuepublic void remove(K key)
key - keyCopyright © 2024. All rights reserved.