类 DefaultRedisSupportImpl<T>
java.lang.Object
cn.nkpro.elcube.data.redis.defaults.DefaultRedisSupportImpl<T>
- 所有已实现的接口:
RedisSupport<T>
Redis Template 的代理程序
对RedisTemplate进行简单包装,方便使用
Created by bean on 2020/7/24.
-
嵌套类概要
从接口继承的嵌套类/接口 cn.nkpro.elcube.data.redis.RedisSupport
RedisSupport.Function<T> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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 keys, boolean cacheNullValue, RedisSupport.Function<T> mapper)getIfAbsent(String hash, String keys, RedisSupport.Function<T> mapper)longbooleanvoidvoidvoid
-
构造器详细资料
-
DefaultRedisSupportImpl
public DefaultRedisSupportImpl()
-
-
方法详细资料
-
keys
- 指定者:
keys在接口中RedisSupport<T>
-
clear
public void clear()- 指定者:
clear在接口中RedisSupport<T>
-
exists
- 指定者:
exists在接口中RedisSupport<T>
-
expire
- 指定者:
expire在接口中RedisSupport<T>
-
getExpire
- 指定者:
getExpire在接口中RedisSupport<T>
-
increment
- 指定者:
increment在接口中RedisSupport<T>
-
set
- 指定者:
set在接口中RedisSupport<T>
-
get
- 指定者:
get在接口中RedisSupport<T>
-
getIfAbsent
- 指定者:
getIfAbsent在接口中RedisSupport<T>- 抛出:
NkRuntimeException
-
getIfAbsent
public T getIfAbsent(String key, boolean cacheNullValue, RedisSupport.Function<T> mapper) throws NkRuntimeException- 指定者:
getIfAbsent在接口中RedisSupport<T>- 抛出:
NkRuntimeException
-
getIfAbsent
public T getIfAbsent(String key, long expire, RedisSupport.Function<T> mapper) throws NkRuntimeException- 指定者:
getIfAbsent在接口中RedisSupport<T>- 抛出:
NkRuntimeException
-
getIfAbsent
public T getIfAbsent(String key, long expire, boolean cacheNullValue, RedisSupport.Function<T> mapper) throws NkRuntimeException- 指定者:
getIfAbsent在接口中RedisSupport<T>- 抛出:
NkRuntimeException
-
delete
- 指定者:
delete在接口中RedisSupport<T>
-
delete
- 指定者:
delete在接口中RedisSupport<T>
-
deletes
- 指定者:
deletes在接口中RedisSupport<T>
-
set
- 指定者:
set在接口中RedisSupport<T>
-
get
- 指定者:
get在接口中RedisSupport<T>
-
getIfAbsent
public T getIfAbsent(String hash, String keys, RedisSupport.Function<T> mapper) throws NkRuntimeException- 指定者:
getIfAbsent在接口中RedisSupport<T>- 抛出:
NkRuntimeException
-
getIfAbsent
public T getIfAbsent(String hash, String keys, boolean cacheNullValue, RedisSupport.Function<T> mapper) throws NkRuntimeException- 指定者:
getIfAbsent在接口中RedisSupport<T>- 抛出:
NkRuntimeException
-
getHash
- 指定者:
getHash在接口中RedisSupport<T>
-
getHash
- 指定者:
getHash在接口中RedisSupport<T>
-
getHash
- 指定者:
getHash在接口中RedisSupport<T>
-
getHashIfAbsent
- 指定者:
getHashIfAbsent在接口中RedisSupport<T>
-
deleteHash
- 指定者:
deleteHash在接口中RedisSupport<T>
-
deleteHash
- 指定者:
deleteHash在接口中RedisSupport<T>
-
lock
- 指定者:
lock在接口中RedisSupport<T>
-
lock
- 指定者:
lock在接口中RedisSupport<T>
-
unlock
- 指定者:
unlock在接口中RedisSupport<T>
-