接口 RedisSupport<T>
- 所有已知实现类:
DefaultRedisSupportImpl
public interface RedisSupport<T>
Redis Template 的代理程序
对RedisTemplate进行简单包装,方便使用
由于部分企业内部不适用RedisTemplate对redis进行访问
企业可自行实现此接口,注入到Spring的上下文
时间单位 秒
Created by bean on 2020/7/24.
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明voidclear()voidvoiddelete(Collection<String> key)voiddeleteHash(String hash, Object... keys)voiddeleteHash(String hash, Collection<String> keys)voidbooleanvoidgetHash(String hash, Collection<String> keys)getHashIfAbsent(String hash, RedisSupport.Function<Map<String,T>> mapper)getIfAbsent(String key, boolean cacheNullValue, RedisSupport.Function<T> mapper)getIfAbsent(String key, long expire, boolean cacheNullValue, RedisSupport.Function<T> mapper)getIfAbsent(String key, long expire, RedisSupport.Function<T> mapper)getIfAbsent(String key, RedisSupport.Function<T> mapper)getIfAbsent(String hash, String hashKey, boolean cacheNullValue, RedisSupport.Function<T> mapper)getIfAbsent(String hash, String hashKey, RedisSupport.Function<T> mapper)longbooleanvoidvoidvoid
-
方法详细资料
-
keys
-
clear
void clear() -
exists
-
expire
-
getExpire
-
increment
-
set
-
get
-
getIfAbsent
-
getIfAbsent
T getIfAbsent(String key, boolean cacheNullValue, RedisSupport.Function<T> mapper) throws NkRuntimeException -
getIfAbsent
-
getIfAbsent
T getIfAbsent(String key, long expire, boolean cacheNullValue, RedisSupport.Function<T> mapper) throws NkRuntimeException -
delete
-
delete
-
deletes
-
set
-
get
-
getIfAbsent
T getIfAbsent(String hash, String hashKey, RedisSupport.Function<T> mapper) throws NkRuntimeException -
getIfAbsent
T getIfAbsent(String hash, String hashKey, boolean cacheNullValue, RedisSupport.Function<T> mapper) throws NkRuntimeException -
getHash
-
getHash
-
getHash
-
getHashIfAbsent
-
deleteHash
-
deleteHash
-
lock
-
lock
-
unlock
-