public abstract class AbstractRedisHashCacheOperator<T> extends Object implements CacheOperatorApi<T>
| 构造器和说明 |
|---|
AbstractRedisHashCacheOperator(org.springframework.data.redis.core.RedisTemplate<String,T> redisTemplate) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
contains(String key) |
void |
expire(String key,
Long expiredSeconds) |
T |
get(String key) |
Collection<String> |
getAllKeys() |
Map<String,T> |
getAllKeyValues() |
Collection<T> |
getAllValues() |
org.springframework.data.redis.core.RedisTemplate<String,T> |
getRedisTemplate()
获取RedisTemplate
|
void |
put(String key,
T value) |
void |
put(String key,
T value,
Long timeoutSeconds) |
void |
remove(String... key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommonKeyPrefixpublic void put(String key, T value)
put 在接口中 CacheOperatorApi<T>public T get(String key)
get 在接口中 CacheOperatorApi<T>public void remove(String... key)
remove 在接口中 CacheOperatorApi<T>public void expire(String key, Long expiredSeconds)
expire 在接口中 CacheOperatorApi<T>public boolean contains(String key)
contains 在接口中 CacheOperatorApi<T>public Collection<String> getAllKeys()
getAllKeys 在接口中 CacheOperatorApi<T>public Collection<T> getAllValues()
getAllValues 在接口中 CacheOperatorApi<T>public Map<String,T> getAllKeyValues()
getAllKeyValues 在接口中 CacheOperatorApi<T>Copyright © 2021. All rights reserved.