-
- 所有超级接口:
Resourcable
- 所有已知实现类:
AbstractCacheSource
,CacheMemorySource
@Component public interface CacheSource extends Resourcable
Redkale中缓存数据源的核心类。 主要供业务开发者使用, 技术开发者提供CacheSource的实现。
CacheSource提供三种数据类型操作: String、Long和泛型指定的数据类型。
String统一用setString、getString等系列方法。
Long统一用setLong、getLong、incr等系列方法。
其他则供自定义数据类型使用。详情见: https://redkale.org
- 作者:
- zhangjx
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 default <T> void
appendListItem(String key, Type componentType, T value)
已过时。default <T> CompletableFuture<Void>
appendListItemAsync(String key, Type componentType, T value)
已过时。default void
appendLongListItem(String key, long value)
已过时。default CompletableFuture<Void>
appendLongListItemAsync(String key, long value)
已过时。default void
appendLongSetItem(String key, long value)
已过时。default CompletableFuture<Void>
appendLongSetItemAsync(String key, long value)
已过时。default <T> void
appendSetItem(String key, Type componentType, T value)
已过时。default <T> CompletableFuture<Void>
appendSetItemAsync(String key, Type componentType, T value)
已过时。default void
appendStringListItem(String key, String value)
已过时。default CompletableFuture<Void>
appendStringListItemAsync(String key, String value)
已过时。default void
appendStringSetItem(String key, String value)
已过时。default CompletableFuture<Void>
appendStringSetItemAsync(String key, String value)
已过时。default long
dbsize()
CompletableFuture<Long>
dbsizeAsync()
default long
decr(String key)
default long
decr(String key, long num)
已过时。CompletableFuture<Long>
decrAsync(String key)
default long
decrby(String key, long num)
CompletableFuture<Long>
decrbyAsync(String key, long num)
default long
del(String... keys)
CompletableFuture<Long>
delAsync(String... keys)
default long
delex(String key, String expectedValue)
CompletableFuture<Long>
delexAsync(String key, String expectedValue)
default boolean
exists(String key)
CompletableFuture<Boolean>
existsAsync(String key)
default boolean
existsLongSetItem(String key, long value)
已过时。default CompletableFuture<Boolean>
existsLongSetItemAsync(String key, long value)
已过时。default <T> boolean
existsSetItem(String key, Type componentType, T value)
已过时。default <T> CompletableFuture<Boolean>
existsSetItemAsync(String key, Type componentType, T value)
已过时。default boolean
existsStringSetItem(String key, String value)
已过时。default CompletableFuture<Boolean>
existsStringSetItemAsync(String key, String value)
已过时。default void
expire(String key, int expireSeconds)
CompletableFuture<Void>
expireAsync(String key, int seconds)
default void
expireAt(String key, long secondsTime)
CompletableFuture<Void>
expireAtAsync(String key, long secondsTime)
default long
expireTime(String key)
CompletableFuture<Long>
expireTimeAsync(String key)
default void
flushall()
CompletableFuture<Void>
flushallAsync()
default void
flushdb()
CompletableFuture<Void>
flushdbAsync()
default <T> T
get(String key, Type type)
default <T> T
getAndRefresh(String key, int expireSeconds, Type type)
已过时。default <T> CompletableFuture<T>
getAndRefreshAsync(String key, int expireSeconds, Type type)
已过时。<T> CompletableFuture<T>
getAsync(String key, Type type)
default <T> Collection<T>
getCollection(String key, Type componentType)
已过时。<T> CompletableFuture<Collection<T>>
getCollectionAsync(String key, Type componentType)
已过时。default <T> Map<String,Collection<T>>
getCollectionMap(boolean set, Type componentType, String... keys)
已过时。<T> CompletableFuture<Map<String,Collection<T>>>
getCollectionMapAsync(boolean set, Type componentType, String... keys)
已过时。default int
getCollectionSize(String key)
已过时。CompletableFuture<Integer>
getCollectionSizeAsync(String key)
已过时。default <T> T
getDel(String key, Type type)
<T> CompletableFuture<T>
getDelAsync(String key, Type type)
default Long
getDelLong(String key)
default long
getDelLong(String key, long defValue)
default CompletableFuture<Long>
getDelLongAsync(String key)
default CompletableFuture<Long>
getDelLongAsync(String key, long defValue)
default String
getDelString(String key)
default CompletableFuture<String>
getDelStringAsync(String key)
default <T> T
getex(String key, int expireSeconds, Type type)
<T> CompletableFuture<T>
getexAsync(String key, int expireSeconds, Type type)
获取key的值并可选择设置其过期时间default <T> Collection<T>
getexCollection(String key, int expireSeconds, Type componentType)
已过时。<T> CompletableFuture<Collection<T>>
getexCollectionAsync(String key, int expireSeconds, Type componentType)
已过时。default Long
getexLong(String key, int expireSeconds)
default long
getexLong(String key, int expireSeconds, long defValue)
default CompletableFuture<Long>
getexLongAsync(String key, int expireSeconds)
default CompletableFuture<Long>
getexLongAsync(String key, int expireSeconds, long defValue)
default Collection<Long>
getexLongCollection(String key, int expireSeconds)
已过时。CompletableFuture<Collection<Long>>
getexLongCollectionAsync(String key, int expireSeconds)
已过时。default String
getexString(String key, int expireSeconds)
default CompletableFuture<String>
getexStringAsync(String key, int expireSeconds)
default Collection<String>
getexStringCollection(String key, int expireSeconds)
已过时。CompletableFuture<Collection<String>>
getexStringCollectionAsync(String key, int expireSeconds)
已过时。default int
getKeySize()
已过时。default CompletableFuture<Integer>
getKeySizeAsync()
已过时。default Long
getLong(String key)
default long
getLong(String key, long defValue)
default long
getLongAndRefresh(String key, int expireSeconds, long defValue)
已过时。default CompletableFuture<Long>
getLongAndRefreshAsync(String key, int expireSeconds, long defValue)
已过时。default Long[]
getLongArray(String... keys)
已过时。default CompletableFuture<Long[]>
getLongArrayAsync(String... keys)
已过时。default CompletableFuture<Long>
getLongAsync(String key)
default CompletableFuture<Long>
getLongAsync(String key, long defValue)
default Collection<Long>
getLongCollection(String key)
已过时。CompletableFuture<Collection<Long>>
getLongCollectionAsync(String key)
已过时。default Map<String,Collection<Long>>
getLongCollectionMap(boolean set, String... keys)
已过时。CompletableFuture<Map<String,Collection<Long>>>
getLongCollectionMapAsync(boolean set, String... keys)
已过时。default Map<String,Long>
getLongMap(String... keys)
已过时。default CompletableFuture<Map<String,Long>>
getLongMapAsync(String... keys)
已过时。default <T> Map<String,T>
getMap(Type componentType, String... keys)
已过时。default <T> CompletableFuture<Map<String,T>>
getMapAsync(Type componentType, String... keys)
已过时。default <T> T
getSet(String key, Type type, T value)
default <T> T
getSet(String key, Convert convert, Type type, T value)
default <T> CompletableFuture<T>
getSetAsync(String key, Type type, T value)
<T> CompletableFuture<T>
getSetAsync(String key, Convert convert, Type type, T value)
default Long
getSetLong(String key, long value)
default long
getSetLong(String key, long value, long defValue)
default CompletableFuture<Long>
getSetLongAsync(String key, long value)
default CompletableFuture<Long>
getSetLongAsync(String key, long value, long defValue)
default String
getSetString(String key, String value)
default CompletableFuture<String>
getSetStringAsync(String key, String value)
default String
getString(String key)
default String
getStringAndRefresh(String key, int expireSeconds)
已过时。default CompletableFuture<String>
getStringAndRefreshAsync(String key, int expireSeconds)
已过时。default String[]
getStringArray(String... keys)
已过时。default CompletableFuture<String[]>
getStringArrayAsync(String... keys)
已过时。default CompletableFuture<String>
getStringAsync(String key)
default Collection<String>
getStringCollection(String key)
已过时。CompletableFuture<Collection<String>>
getStringCollectionAsync(String key)
已过时。default Map<String,Collection<String>>
getStringCollectionMap(boolean set, String... keys)
已过时。CompletableFuture<Map<String,Collection<String>>>
getStringCollectionMapAsync(boolean set, String... keys)
已过时。default Map<String,String>
getStringMap(String... keys)
已过时。default CompletableFuture<Map<String,String>>
getStringMapAsync(String... keys)
已过时。String
getType()
default long
hdecr(String key, String field)
CompletableFuture<Long>
hdecrAsync(String key, String field)
default long
hdecrby(String key, String field, long num)
CompletableFuture<Long>
hdecrbyAsync(String key, String field, long num)
default long
hdel(String key, String... fields)
CompletableFuture<Long>
hdelAsync(String key, String... fields)
default boolean
hexists(String key, String field)
CompletableFuture<Boolean>
hexistsAsync(String key, String field)
default <T> T
hget(String key, String field, Type type)
default <T> Map<String,T>
hgetall(String key, Type type)
<T> CompletableFuture<Map<String,T>>
hgetallAsync(String key, Type type)
default Map<String,Long>
hgetallLong(String key)
default CompletableFuture<Map<String,Long>>
hgetallLongAsync(String key)
default Map<String,String>
hgetallString(String key)
default CompletableFuture<Map<String,String>>
hgetallStringAsync(String key)
<T> CompletableFuture<T>
hgetAsync(String key, String field, Type type)
default Long
hgetLong(String key, String field)
default long
hgetLong(String key, String field, long defValue)
default CompletableFuture<Long>
hgetLongAsync(String key, String field)
default CompletableFuture<Long>
hgetLongAsync(String key, String field, long defValue)
default String
hgetString(String key, String field)
default CompletableFuture<String>
hgetStringAsync(String key, String field)
default long
hincr(String key, String field)
CompletableFuture<Long>
hincrAsync(String key, String field)
default long
hincrby(String key, String field, long num)
CompletableFuture<Long>
hincrbyAsync(String key, String field, long num)
default double
hincrbyFloat(String key, String field, double num)
CompletableFuture<Double>
hincrbyFloatAsync(String key, String field, double num)
default List<String>
hkeys(String key)
CompletableFuture<List<String>>
hkeysAsync(String key)
default long
hlen(String key)
CompletableFuture<Long>
hlenAsync(String key)
default <T> Map<String,T>
hmap(String key, Type type, int start, int limit)
已过时。default <T> Map<String,T>
hmap(String key, Type type, int start, int limit, String pattern)
已过时。default <T> CompletableFuture<Map<String,T>>
hmapAsync(String key, Type type, int start, int limit)
已过时。default <T> CompletableFuture<Map<String,T>>
hmapAsync(String key, Type type, int start, int limit, String pattern)
已过时。default <T> List<T>
hmget(String key, Type type, String... fields)
<T> CompletableFuture<List<T>>
hmgetAsync(String key, Type type, String... fields)
default List<Long>
hmgetLong(String key, String... fields)
default CompletableFuture<List<Long>>
hmgetLongAsync(String key, String... fields)
default List<String>
hmgetString(String key, String... fields)
default CompletableFuture<List<String>>
hmgetStringAsync(String key, String... fields)
default void
hmset(String key, Serializable... values)
default void
hmset(String key, Map map)
CompletableFuture<Void>
hmsetAsync(String key, Serializable... values)
CompletableFuture<Void>
hmsetAsync(String key, Map map)
default int
hremove(String key, String... fields)
已过时。default CompletableFuture<Integer>
hremoveAsync(String key, String... fields)
已过时。default <T> Map<String,T>
hscan(String key, Type type, AtomicLong cursor, int limit)
default <T> Map<String,T>
hscan(String key, Type type, AtomicLong cursor, int limit, String pattern)
default <T> CompletableFuture<Map<String,T>>
hscanAsync(String key, Type type, AtomicLong cursor, int limit)
<T> CompletableFuture<Map<String,T>>
hscanAsync(String key, Type type, AtomicLong cursor, int limit, String pattern)
default <T> void
hset(String key, String field, Type type, T value)
default <T> void
hset(String key, String field, Convert convert, Type type, T value)
default <T> CompletableFuture<Void>
hsetAsync(String key, String field, Type type, T value)
<T> CompletableFuture<Void>
hsetAsync(String key, String field, Convert convert, Type type, T value)
default void
hsetLong(String key, String field, long value)
default CompletableFuture<Void>
hsetLongAsync(String key, String field, long value)
default <T> boolean
hsetnx(String key, String field, Type type, T value)
default <T> boolean
hsetnx(String key, String field, Convert convert, Type type, T value)
default <T> CompletableFuture<Boolean>
hsetnxAsync(String key, String field, Type type, T value)
<T> CompletableFuture<Boolean>
hsetnxAsync(String key, String field, Convert convert, Type type, T value)
default boolean
hsetnxLong(String key, String field, long value)
default CompletableFuture<Boolean>
hsetnxLongAsync(String key, String field, long value)
default boolean
hsetnxString(String key, String field, String value)
default CompletableFuture<Boolean>
hsetnxStringAsync(String key, String field, String value)
default void
hsetString(String key, String field, String value)
default CompletableFuture<Void>
hsetStringAsync(String key, String field, String value)
default int
hsize(String key)
已过时。default CompletableFuture<Integer>
hsizeAsync(String key)
已过时。default long
hstrlen(String key, String field)
CompletableFuture<Long>
hstrlenAsync(String key, String field)
default <T> List<T>
hvals(String key, Type type)
<T> CompletableFuture<List<T>>
hvalsAsync(String key, Type type)
default List<Long>
hvalsLong(String key)
default CompletableFuture<List<Long>>
hvalsLongAsync(String key)
default List<String>
hvalsString(String key)
default CompletableFuture<List<String>>
hvalsStringAsync(String key)
default long
incr(String key)
default long
incr(String key, long num)
已过时。CompletableFuture<Long>
incrAsync(String key)
default long
incrby(String key, long num)
CompletableFuture<Long>
incrbyAsync(String key, long num)
default double
incrbyFloat(String key, double num)
CompletableFuture<Double>
incrbyFloatAsync(String key, double num)
default boolean
isOpen()
CompletableFuture<Boolean>
isOpenAsync()
default List<String>
keys()
default List<String>
keys(String pattern)
default CompletableFuture<List<String>>
keysAsync()
CompletableFuture<List<String>>
keysAsync(String pattern)
default List<String>
keysStartsWith(String startsWith)
default CompletableFuture<List<String>>
keysStartsWithAsync(String startsWith)
default <T> T
lindex(String key, Type componentType, int index)
<T> CompletableFuture<T>
lindexAsync(String key, Type componentType, int index)
default Long
lindexLong(String key, int index)
default CompletableFuture<Long>
lindexLongAsync(String key, int index)
default String
lindexString(String key, int index)
default CompletableFuture<String>
lindexStringAsync(String key, int index)
default <T> long
linsertAfter(String key, Type componentType, T pivot, T value)
<T> CompletableFuture<Long>
linsertAfterAsync(String key, Type componentType, T pivot, T value)
default long
linsertAfterLong(String key, Long pivot, Long value)
default CompletableFuture<Long>
linsertAfterLongAsync(String key, Long pivot, Long value)
default long
linsertAfterString(String key, String pivot, String value)
default CompletableFuture<Long>
linsertAfterStringAsync(String key, String pivot, String value)
default <T> long
linsertBefore(String key, Type componentType, T pivot, T value)
<T> CompletableFuture<Long>
linsertBeforeAsync(String key, Type componentType, T pivot, T value)
default long
linsertBeforeLong(String key, Long pivot, Long value)
default CompletableFuture<Long>
linsertBeforeLongAsync(String key, Long pivot, Long value)
default long
linsertBeforeString(String key, String pivot, String value)
default CompletableFuture<Long>
linsertBeforeStringAsync(String key, String pivot, String value)
default long
llen(String key)
CompletableFuture<Long>
llenAsync(String key)
default boolean
lock(String key, int expireSeconds)
default CompletableFuture<Boolean>
lockAsync(String key, int expireSeconds)
default <T> T
lpop(String key, Type componentType)
<T> CompletableFuture<T>
lpopAsync(String key, Type componentType)
default Long
lpopLong(String key)
default CompletableFuture<Long>
lpopLongAsync(String key)
default String
lpopString(String key)
default CompletableFuture<String>
lpopStringAsync(String key)
default <T> void
lpush(String key, Type componentType, T... values)
<T> CompletableFuture<Void>
lpushAsync(String key, Type componentType, T... values)
default void
lpushLong(String key, Long... values)
default CompletableFuture<Void>
lpushLongAsync(String key, Long... values)
default void
lpushString(String key, String... values)
default CompletableFuture<Void>
lpushStringAsync(String key, String... values)
default <T> void
lpushx(String key, Type componentType, T... values)
<T> CompletableFuture<Void>
lpushxAsync(String key, Type componentType, T... values)
default void
lpushxLong(String key, Long... values)
default CompletableFuture<Void>
lpushxLongAsync(String key, Long... values)
default void
lpushxString(String key, String... values)
default CompletableFuture<Void>
lpushxStringAsync(String key, String... values)
default <T> List<T>
lrange(String key, Type componentType)
default <T> List<T>
lrange(String key, Type componentType, int start, int stop)
default <T> CompletableFuture<List<T>>
lrangeAsync(String key, Type componentType)
<T> CompletableFuture<List<T>>
lrangeAsync(String key, Type componentType, int start, int stop)
default List<Long>
lrangeLong(String key)
default List<Long>
lrangeLong(String key, int start, int stop)
default CompletableFuture<List<Long>>
lrangeLongAsync(String key)
default CompletableFuture<List<Long>>
lrangeLongAsync(String key, int start, int stop)
default <T> Map<String,List<T>>
lranges(Type componentType, String... keys)
<T> CompletableFuture<Map<String,List<T>>>
lrangesAsync(Type componentType, String... keys)
default Map<String,List<Long>>
lrangesLong(String... keys)
default CompletableFuture<Map<String,List<Long>>>
lrangesLongAsync(String... keys)
default Map<String,List<String>>
lrangesString(String... keys)
default CompletableFuture<Map<String,List<String>>>
lrangesStringAsync(String... keys)
default List<String>
lrangeString(String key)
default List<String>
lrangeString(String key, int start, int stop)
default CompletableFuture<List<String>>
lrangeStringAsync(String key)
default CompletableFuture<List<String>>
lrangeStringAsync(String key, int start, int stop)
default <T> long
lrem(String key, Type componentType, T value)
<T> CompletableFuture<Long>
lremAsync(String key, Type componentType, T value)
default long
lremLong(String key, long value)
default CompletableFuture<Long>
lremLongAsync(String key, long value)
default long
lremString(String key, String value)
default CompletableFuture<Long>
lremStringAsync(String key, String value)
default void
ltrim(String key, int start, int stop)
CompletableFuture<Void>
ltrimAsync(String key, int start, int stop)
default <T> List<T>
mget(Type componentType, String... keys)
<T> CompletableFuture<List<T>>
mgetAsync(Type componentType, String... keys)
default List<Long>
mgetLong(String... keys)
default CompletableFuture<List<Long>>
mgetLongAsync(String... keys)
default <T> Map<String,T>
mgets(Type componentType, String... keys)
default <T> CompletableFuture<Map<String,T>>
mgetsAsync(Type componentType, String... keys)
default Map<String,Long>
mgetsLong(String... keys)
default CompletableFuture<Map<String,Long>>
mgetsLongAsync(String... keys)
default Map<String,String>
mgetsString(String... keys)
default CompletableFuture<Map<String,String>>
mgetsStringAsync(String... keys)
default List<String>
mgetString(String... keys)
default CompletableFuture<List<String>>
mgetStringAsync(String... keys)
default void
mset(Serializable... keyVals)
default void
mset(Map map)
CompletableFuture<Void>
msetAsync(Serializable... keyVals)
CompletableFuture<Void>
msetAsync(Map map)
default boolean
msetnx(Serializable... keyVals)
default boolean
msetnx(Map map)
CompletableFuture<Boolean>
msetnxAsync(Serializable... keyVals)
CompletableFuture<Boolean>
msetnxAsync(Map map)
default boolean
persist(String key)
CompletableFuture<Boolean>
persistAsync(String key)
default void
pexpire(String key, long milliSeconds)
CompletableFuture<Void>
pexpireAsync(String key, long milliSeconds)
default void
pexpireAt(String key, long milliTime)
CompletableFuture<Void>
pexpireAtAsync(String key, long milliTime)
default long
pexpireTime(String key)
CompletableFuture<Long>
pexpireTimeAsync(String key)
default <T> void
psetex(String key, long milliSeconds, Type type, T value)
default <T> void
psetex(String key, long milliSeconds, Convert convert, Type type, T value)
default <T> CompletableFuture<Void>
psetexAsync(String key, long milliSeconds, Type type, T value)
<T> CompletableFuture<Void>
psetexAsync(String key, long milliSeconds, Convert convert, Type type, T value)
default void
psetexLong(String key, long milliSeconds, long value)
default CompletableFuture<Void>
psetexLongAsync(String key, long milliSeconds, long value)
default void
psetexString(String key, long milliSeconds, String value)
default CompletableFuture<Void>
psetexStringAsync(String key, long milliSeconds, String value)
default long
pttl(String key)
CompletableFuture<Long>
pttlAsync(String key)
default int
publish(String topic, byte[] message)
default <T> int
publish(String topic, Type messageType, T message)
default <T> int
publish(String topic, Convert convert, Type messageType, T message)
default <T> int
publish(String topic, Convert convert, T message)
default <T> int
publish(String topic, T message)
CompletableFuture<Integer>
publishAsync(String topic, byte[] message)
default <T> CompletableFuture<Integer>
publishAsync(String topic, Type messageType, T message)
default <T> CompletableFuture<Integer>
publishAsync(String topic, Convert convert, Type messageType, T message)
default <T> CompletableFuture<Integer>
publishAsync(String topic, Convert convert, T message)
default <T> CompletableFuture<Integer>
publishAsync(String topic, T message)
default List<String>
pubsubChannels(String pattern)
CompletableFuture<List<String>>
pubsubChannelsAsync(String pattern)
default List<String>
queryKeys()
已过时。default CompletableFuture<List<String>>
queryKeysAsync()
已过时。default List<String>
queryKeysEndsWith(String endsWith)
已过时。default CompletableFuture<List<String>>
queryKeysEndsWithAsync(String endsWith)
已过时。default List<String>
queryKeysStartsWith(String startsWith)
已过时。default CompletableFuture<List<String>>
queryKeysStartsWithAsync(String startsWith)
已过时。default long
rateLimit(String key, long rate, long capacity)
令牌桶算法限流, 返回负数表示无令牌, 其他为有令牌default long
rateLimit(String key, long rate, long capacity, long requested)
令牌桶算法限流, 返回负数表示无令牌, 其他为有令牌default CompletableFuture<Long>
rateLimitAsync(String key, long rate, long capacity)
令牌桶算法限流, 返回负数表示无令牌, 其他为有令牌CompletableFuture<Long>
rateLimitAsync(String key, long rate, long capacity, long requested)
令牌桶算法限流, 返回负数表示无令牌, 其他为有令牌default void
refresh(String key, int expireSeconds)
已过时。default CompletableFuture<Void>
refreshAsync(String key, int expireSeconds)
已过时。default int
remove(String key)
已过时。default CompletableFuture<Integer>
removeAsync(String key)
已过时。default <T> int
removeListItem(String key, Type componentType, T value)
已过时。default <T> CompletableFuture<Integer>
removeListItemAsync(String key, Type componentType, T value)
已过时。default int
removeLongListItem(String key, long value)
已过时。default CompletableFuture<Integer>
removeLongListItemAsync(String key, long value)
已过时。default int
removeLongSetItem(String key, long value)
已过时。default CompletableFuture<Integer>
removeLongSetItemAsync(String key, long value)
已过时。default <T> int
removeSetItem(String key, Type componentType, T value)
已过时。default <T> CompletableFuture<Integer>
removeSetItemAsync(String key, Type componentType, T value)
已过时。default int
removeStringListItem(String key, String value)
已过时。default CompletableFuture<Integer>
removeStringListItemAsync(String key, String value)
已过时。default int
removeStringSetItem(String key, String value)
已过时。default CompletableFuture<Integer>
removeStringSetItemAsync(String key, String value)
已过时。default boolean
rename(String oldKey, String newKey)
CompletableFuture<Boolean>
renameAsync(String oldKey, String newKey)
default boolean
renamenx(String oldKey, String newKey)
CompletableFuture<Boolean>
renamenxAsync(String oldKey, String newKey)
default <T> T
rpop(String key, Type componentType)
<T> CompletableFuture<T>
rpopAsync(String key, Type componentType)
default Long
rpopLong(String key)
default CompletableFuture<Long>
rpopLongAsync(String key)
default <T> T
rpoplpush(String key, String key2, Type componentType)
<T> CompletableFuture<T>
rpoplpushAsync(String key, String key2, Type componentType)
default Long
rpoplpushLong(String key, String key2)
default CompletableFuture<Long>
rpoplpushLongAsync(String key, String key2)
default String
rpoplpushString(String key, String key2)
default CompletableFuture<String>
rpoplpushStringAsync(String key, String key2)
default String
rpopString(String key)
default CompletableFuture<String>
rpopStringAsync(String key)
default <T> void
rpush(String key, Type componentType, T... values)
<T> CompletableFuture<Void>
rpushAsync(String key, Type componentType, T... values)
default void
rpushLong(String key, Long... values)
default CompletableFuture<Void>
rpushLongAsync(String key, Long... values)
default void
rpushString(String key, String... values)
default CompletableFuture<Void>
rpushStringAsync(String key, String... values)
default <T> void
rpushx(String key, Type componentType, T... values)
<T> CompletableFuture<Void>
rpushxAsync(String key, Type componentType, T... values)
default void
rpushxLong(String key, Long... values)
default CompletableFuture<Void>
rpushxLongAsync(String key, Long... values)
default void
rpushxString(String key, String... values)
default CompletableFuture<Void>
rpushxStringAsync(String key, String... values)
default <T> void
sadd(String key, Type componentType, T... values)
<T> CompletableFuture<Void>
saddAsync(String key, Type componentType, T... values)
default void
saddLong(String key, Long... values)
default CompletableFuture<Void>
saddLongAsync(String key, Long... values)
default void
saddString(String key, String... values)
default CompletableFuture<Void>
saddStringAsync(String key, String... values)
default List<String>
scan(AtomicLong cursor, int limit)
default List<String>
scan(AtomicLong cursor, int limit, String pattern)
default CompletableFuture<List<String>>
scanAsync(AtomicLong cursor, int limit)
CompletableFuture<List<String>>
scanAsync(AtomicLong cursor, int limit, String pattern)
default long
scard(String key)
CompletableFuture<Long>
scardAsync(String key)
default <T> Set<T>
sdiff(String key, Type componentType, String... key2s)
<T> CompletableFuture<Set<T>>
sdiffAsync(String key, Type componentType, String... key2s)
default Set<Long>
sdiffLong(String key, String... key2s)
default CompletableFuture<Set<Long>>
sdiffLongAsync(String key, String... key2s)
default long
sdiffstore(String key, String srcKey, String... srcKey2s)
CompletableFuture<Long>
sdiffstoreAsync(String key, String srcKey, String... srcKey2s)
default Set<String>
sdiffString(String key, String... key2s)
default CompletableFuture<Set<String>>
sdiffStringAsync(String key, String... key2s)
default <T> void
set(int expireSeconds, String key, Type type, T value)
已过时。default <T> void
set(int expireSeconds, String key, Convert convert, Type type, T value)
已过时。default <T> void
set(int expireSeconds, String key, Convert convert, T value)
已过时。default <T> void
set(String key, Type type, T value)
default <T> void
set(String key, Convert convert, Type type, T value)
default <T> CompletableFuture<Void>
setAsync(int expireSeconds, String key, Type type, T value)
已过时。default <T> CompletableFuture<Void>
setAsync(int expireSeconds, String key, Convert convert, Type type, T value)
已过时。default <T> CompletableFuture<Void>
setAsync(int expireSeconds, String key, Convert convert, T value)
已过时。default <T> CompletableFuture<Void>
setAsync(String key, Type type, T value)
<T> CompletableFuture<Void>
setAsync(String key, Convert convert, Type type, T value)
default <T> void
setex(String key, int expireSeconds, Type type, T value)
default <T> void
setex(String key, int expireSeconds, Convert convert, Type type, T value)
default <T> CompletableFuture<Void>
setexAsync(String key, int expireSeconds, Type type, T value)
<T> CompletableFuture<Void>
setexAsync(String key, int expireSeconds, Convert convert, Type type, T value)
default void
setexLong(String key, int expireSeconds, long value)
default CompletableFuture<Void>
setexLongAsync(String key, int expireSeconds, long value)
default void
setExpireSeconds(String key, int expireSeconds)
已过时。default CompletableFuture<Void>
setExpireSecondsAsync(String key, int expireSeconds)
已过时。default void
setexString(String key, int expireSeconds, String value)
default CompletableFuture<Void>
setexStringAsync(String key, int expireSeconds, String value)
default void
setLong(int expireSeconds, String key, long value)
已过时。default void
setLong(String key, long value)
default CompletableFuture<Void>
setLongAsync(String key, long value)
default <T> boolean
setnx(String key, Type type, T value)
default <T> boolean
setnx(String key, Convert convert, Type type, T value)
default <T> CompletableFuture<Boolean>
setnxAsync(String key, Type type, T value)
<T> CompletableFuture<Boolean>
setnxAsync(String key, Convert convert, Type type, T value)
default <T> boolean
setnxex(String key, int expireSeconds, Type type, T value)
default <T> boolean
setnxex(String key, int expireSeconds, Convert convert, Type type, T value)
default <T> CompletableFuture<Boolean>
setnxexAsync(String key, int expireSeconds, Type type, T value)
<T> CompletableFuture<Boolean>
setnxexAsync(String key, int expireSeconds, Convert convert, Type type, T value)
default boolean
setnxexLong(String key, int expireSeconds, long value)
default CompletableFuture<Boolean>
setnxexLongAsync(String key, int expireSeconds, long value)
default boolean
setnxexString(String key, int expireSeconds, String value)
default CompletableFuture<Boolean>
setnxexStringAsync(String key, int expireSeconds, String value)
default boolean
setnxLong(String key, long value)
default CompletableFuture<Boolean>
setnxLongAsync(String key, long value)
default <T> boolean
setnxpx(String key, long milliSeconds, Type type, T value)
default <T> boolean
setnxpx(String key, long milliSeconds, Convert convert, Type type, T value)
default <T> CompletableFuture<Boolean>
setnxpxAsync(String key, long milliSeconds, Type type, T value)
<T> CompletableFuture<Boolean>
setnxpxAsync(String key, long milliSeconds, Convert convert, Type type, T value)
default boolean
setnxpxLong(String key, long milliSeconds, long value)
default CompletableFuture<Boolean>
setnxpxLongAsync(String key, long milliSeconds, long value)
default boolean
setnxpxString(String key, long milliSeconds, String value)
default CompletableFuture<Boolean>
setnxpxStringAsync(String key, long milliSeconds, String value)
default boolean
setnxString(String key, String value)
default CompletableFuture<Boolean>
setnxStringAsync(String key, String value)
default void
setString(int expireSeconds, String key, String value)
已过时。default void
setString(String key, String value)
default CompletableFuture<Void>
setStringAsync(String key, String value)
default <T> Set<T>
sinter(String key, Type componentType, String... key2s)
<T> CompletableFuture<Set<T>>
sinterAsync(String key, Type componentType, String... key2s)
default Set<Long>
sinterLong(String key, String... key2s)
default CompletableFuture<Set<Long>>
sinterLongAsync(String key, String... key2s)
default long
sinterstore(String key, String srcKey, String... srcKey2s)
CompletableFuture<Long>
sinterstoreAsync(String key, String srcKey, String... srcKey2s)
default Set<String>
sinterString(String key, String... key2s)
default CompletableFuture<Set<String>>
sinterStringAsync(String key, String... key2s)
default <T> boolean
sismember(String key, Type componentType, T value)
<T> CompletableFuture<Boolean>
sismemberAsync(String key, Type componentType, T value)
default boolean
sismemberLong(String key, long value)
default CompletableFuture<Boolean>
sismemberLongAsync(String key, long value)
default boolean
sismemberString(String key, String value)
default CompletableFuture<Boolean>
sismemberStringAsync(String key, String value)
default <T> Map<String,Set<T>>
smembers(Type componentType, String... keys)
default <T> Set<T>
smembers(String key, Type componentType)
<T> CompletableFuture<Map<String,Set<T>>>
smembersAsync(Type componentType, String... keys)
<T> CompletableFuture<Set<T>>
smembersAsync(String key, Type componentType)
default Set<Long>
smembersLong(String key)
default Map<String,Set<Long>>
smembersLong(String... keys)
default CompletableFuture<Set<Long>>
smembersLongAsync(String key)
default CompletableFuture<Map<String,Set<Long>>>
smembersLongAsync(String... keys)
default Set<String>
smembersString(String key)
default Map<String,Set<String>>
smembersString(String... keys)
default CompletableFuture<Set<String>>
smembersStringAsync(String key)
default CompletableFuture<Map<String,Set<String>>>
smembersStringAsync(String... keys)
default boolean
smismember(String key, String member)
default List<Boolean>
smismembers(String key, String... members)
<T> CompletableFuture<List<Boolean>>
smismembersAsync(String key, String... members)
default <T> boolean
smove(String key, String key2, Type componentType, T member)
<T> CompletableFuture<Boolean>
smoveAsync(String key, String key2, Type componentType, T member)
default boolean
smoveLong(String key, String key2, Long member)
default CompletableFuture<Boolean>
smoveLongAsync(String key, String key2, Long member)
default boolean
smoveString(String key, String key2, String member)
default CompletableFuture<Boolean>
smoveStringAsync(String key, String key2, String member)
default <T> Set<T>
spop(String key, int count, Type componentType)
default <T> T
spop(String key, Type componentType)
<T> CompletableFuture<Set<T>>
spopAsync(String key, int count, Type componentType)
<T> CompletableFuture<T>
spopAsync(String key, Type componentType)
default Long
spopLong(String key)
default Set<Long>
spopLong(String key, int count)
default CompletableFuture<Long>
spopLongAsync(String key)
default CompletableFuture<Set<Long>>
spopLongAsync(String key, int count)
default Long
spopLongSetItem(String key)
已过时。default Set<Long>
spopLongSetItem(String key, int count)
已过时。default CompletableFuture<Long>
spopLongSetItemAsync(String key)
已过时。default CompletableFuture<Set<Long>>
spopLongSetItemAsync(String key, int count)
已过时。default <T> Set<T>
spopSetItem(String key, int count, Type componentType)
已过时。default <T> T
spopSetItem(String key, Type componentType)
已过时。default <T> CompletableFuture<Set<T>>
spopSetItemAsync(String key, int count, Type componentType)
已过时。default <T> CompletableFuture<T>
spopSetItemAsync(String key, Type componentType)
已过时。default String
spopString(String key)
default Set<String>
spopString(String key, int count)
default CompletableFuture<String>
spopStringAsync(String key)
default CompletableFuture<Set<String>>
spopStringAsync(String key, int count)
default String
spopStringSetItem(String key)
已过时。default Set<String>
spopStringSetItem(String key, int count)
已过时。default CompletableFuture<String>
spopStringSetItemAsync(String key)
已过时。default CompletableFuture<Set<String>>
spopStringSetItemAsync(String key, int count)
已过时。default <T> T
srandmember(String key, Type componentType)
default <T> List<T>
srandmember(String key, Type componentType, int count)
default <T> CompletableFuture<T>
srandmemberAsync(String key, Type componentType)
<T> CompletableFuture<List<T>>
srandmemberAsync(String key, Type componentType, int count)
default Long
srandmemberLong(String key)
default List<Long>
srandmemberLong(String key, int count)
default CompletableFuture<Long>
srandmemberLongAsync(String key)
default CompletableFuture<List<Long>>
srandmemberLongAsync(String key, int count)
default CompletableFuture<String>
srandmemberString(String key)
default List<String>
srandmemberString(String key, int count)
default CompletableFuture<String>
srandmemberStringAsync(String key)
default CompletableFuture<List<String>>
srandmemberStringAsync(String key, int count)
default <T> long
srem(String key, Type componentType, T... values)
<T> CompletableFuture<Long>
sremAsync(String key, Type componentType, T... values)
default long
sremLong(String key, Long... values)
default CompletableFuture<Long>
sremLongAsync(String key, Long... values)
default long
sremString(String key, String... values)
default CompletableFuture<Long>
sremStringAsync(String key, String... values)
default <T> Set<T>
sscan(String key, Type componentType, AtomicLong cursor, int limit)
default <T> Set<T>
sscan(String key, Type componentType, AtomicLong cursor, int limit, String pattern)
default <T> CompletableFuture<Set<T>>
sscanAsync(String key, Type componentType, AtomicLong cursor, int limit)
<T> CompletableFuture<Set<T>>
sscanAsync(String key, Type componentType, AtomicLong cursor, int limit, String pattern)
default Set<Long>
sscanLong(String key, AtomicLong cursor, int limit)
default Set<Long>
sscanLong(String key, AtomicLong cursor, int limit, String pattern)
default CompletableFuture<Set<Long>>
sscanLongAsync(String key, AtomicLong cursor, int limit)
default CompletableFuture<Set<Long>>
sscanLongAsync(String key, AtomicLong cursor, int limit, String pattern)
default Set<String>
sscanString(String key, AtomicLong cursor, int limit)
default Set<String>
sscanString(String key, AtomicLong cursor, int limit, String pattern)
default CompletableFuture<Set<String>>
sscanStringAsync(String key, AtomicLong cursor, int limit)
default CompletableFuture<Set<String>>
sscanStringAsync(String key, AtomicLong cursor, int limit, String pattern)
default <T> void
subscribe(Type messageType, CacheEventListener<T> listener, String... topics)
default <T> void
subscribe(Convert convert, Type messageType, CacheEventListener<T> listener, String... topics)
default void
subscribe(CacheEventListener<byte[]> listener, String... topics)
default <T> CompletableFuture<Void>
subscribeAsync(Type messageType, CacheEventListener<T> listener, String... topics)
default <T> CompletableFuture<Void>
subscribeAsync(Convert convert, Type messageType, CacheEventListener<T> listener, String... topics)
CompletableFuture<Void>
subscribeAsync(CacheEventListener<byte[]> listener, String... topics)
default <T> Set<T>
sunion(String key, Type componentType, String... key2s)
<T> CompletableFuture<Set<T>>
sunionAsync(String key, Type componentType, String... key2s)
default Set<Long>
sunionLong(String key, String... key2s)
default CompletableFuture<Set<Long>>
sunionLongAsync(String key, String... key2s)
default long
sunionstore(String key, String srcKey, String... srcKey2s)
CompletableFuture<Long>
sunionstoreAsync(String key, String srcKey, String... srcKey2s)
default Set<String>
sunionString(String key, String... key2s)
default CompletableFuture<Set<String>>
sunionStringAsync(String key, String... key2s)
default long
ttl(String key)
CompletableFuture<Long>
ttlAsync(String key)
default void
unlock(String key)
default CompletableFuture<Void>
unlockAsync(String key)
default void
unsubscribe(CacheEventListener listener, String... topics)
CompletableFuture<Integer>
unsubscribeAsync(CacheEventListener listener, String... topics)
default void
zadd(String key, double score, String member)
default void
zadd(String key, int score, String member)
default void
zadd(String key, long score, String member)
default void
zadd(String key, CacheScoredValue... values)
default CompletableFuture<Void>
zaddAsync(String key, double score, String member)
default CompletableFuture<Void>
zaddAsync(String key, int score, String member)
default CompletableFuture<Void>
zaddAsync(String key, long score, String member)
CompletableFuture<Void>
zaddAsync(String key, CacheScoredValue... values)
default long
zcard(String key)
CompletableFuture<Long>
zcardAsync(String key)
default double
zincrby(String key, double score, String member)
default int
zincrby(String key, int score, String member)
default long
zincrby(String key, long score, String member)
default <T extends Number>
Tzincrby(String key, CacheScoredValue value)
default CompletableFuture<Double>
zincrbyAsync(String key, double score, String member)
default CompletableFuture<Integer>
zincrbyAsync(String key, int score, String member)
default CompletableFuture<Long>
zincrbyAsync(String key, long score, String member)
<T extends Number>
CompletableFuture<T>zincrbyAsync(String key, CacheScoredValue value)
default <T extends Number>
List<T>zmscore(String key, Class<T> scoreType, String... members)
<T extends Number>
CompletableFuture<List<T>>zmscoreAsync(String key, Class<T> scoreType, String... members)
default List<Double>
zmscoreDouble(String key, String... members)
default CompletableFuture<List<Double>>
zmscoreDoubleAsync(String key, String... members)
default List<Integer>
zmscoreInteger(String key, String... members)
default CompletableFuture<List<Integer>>
zmscoreIntegerAsync(String key, String... members)
default List<Long>
zmscoreLong(String key, String... members)
default CompletableFuture<List<Long>>
zmscoreLongAsync(String key, String... members)
default List<String>
zrange(String key, int start, int stop)
CompletableFuture<List<String>>
zrangeAsync(String key, int start, int stop)
default Long
zrank(String key, String member)
CompletableFuture<Long>
zrankAsync(String key, String member)
default long
zrem(String key, String... members)
CompletableFuture<Long>
zremAsync(String key, String... members)
default Long
zrevrank(String key, String member)
CompletableFuture<Long>
zrevrankAsync(String key, String member)
default List<CacheScoredValue>
zscan(String key, Type scoreType, AtomicLong cursor, int limit)
default List<CacheScoredValue>
zscan(String key, Type scoreType, AtomicLong cursor, int limit, String pattern)
default CompletableFuture<List<CacheScoredValue>>
zscanAsync(String key, Type scoreType, AtomicLong cursor, int limit)
CompletableFuture<List<CacheScoredValue>>
zscanAsync(String key, Type scoreType, AtomicLong cursor, int limit, String pattern)
default List<CacheScoredValue>
zscanDouble(String key, AtomicLong cursor, int limit)
default List<CacheScoredValue>
zscanDouble(String key, AtomicLong cursor, int limit, String pattern)
default CompletableFuture<List<CacheScoredValue>>
zscanDoubleAsync(String key, AtomicLong cursor, int limit)
default CompletableFuture<List<CacheScoredValue>>
zscanDoubleAsync(String key, AtomicLong cursor, int limit, String pattern)
default List<CacheScoredValue>
zscanInteger(String key, AtomicLong cursor, int limit)
default List<CacheScoredValue>
zscanInteger(String key, AtomicLong cursor, int limit, String pattern)
default CompletableFuture<List<CacheScoredValue>>
zscanIntegerAsync(String key, AtomicLong cursor, int limit)
default CompletableFuture<List<CacheScoredValue>>
zscanIntegerAsync(String key, AtomicLong cursor, int limit, String pattern)
default List<CacheScoredValue>
zscanLong(String key, AtomicLong cursor, int limit)
default List<CacheScoredValue>
zscanLong(String key, AtomicLong cursor, int limit, String pattern)
default CompletableFuture<List<CacheScoredValue>>
zscanLongAsync(String key, AtomicLong cursor, int limit)
default CompletableFuture<List<CacheScoredValue>>
zscanLongAsync(String key, AtomicLong cursor, int limit, String pattern)
default <T extends Number>
Tzscore(String key, Class<T> scoreType, String member)
<T extends Number>
CompletableFuture<T>zscoreAsync(String key, Class<T> scoreType, String member)
default Double
zscoreDouble(String key, String member)
default CompletableFuture<Double>
zscoreDoubleAsync(String key, String member)
default Integer
zscoreInteger(String key, String member)
default CompletableFuture<Integer>
zscoreIntegerAsync(String key, String member)
default Long
zscoreLong(String key, String member)
default CompletableFuture<Long>
zscoreLongAsync(String key, String member)
-
从接口继承的方法 org.redkale.inject.Resourcable
resourceName
-
-
-
-
方法详细资料
-
getType
String getType()
-
isOpen
default boolean isOpen()
-
pubsubChannelsAsync
CompletableFuture<List<String>> pubsubChannelsAsync(@Nullable String pattern)
-
subscribe
default <T> void subscribe(Type messageType, CacheEventListener<T> listener, String... topics)
-
subscribe
default <T> void subscribe(Convert convert, Type messageType, CacheEventListener<T> listener, String... topics)
-
subscribe
default void subscribe(CacheEventListener<byte[]> listener, String... topics)
-
unsubscribe
default void unsubscribe(CacheEventListener listener, String... topics)
-
subscribeAsync
default <T> CompletableFuture<Void> subscribeAsync(Type messageType, CacheEventListener<T> listener, String... topics)
-
subscribeAsync
default <T> CompletableFuture<Void> subscribeAsync(Convert convert, Type messageType, CacheEventListener<T> listener, String... topics)
-
subscribeAsync
CompletableFuture<Void> subscribeAsync(CacheEventListener<byte[]> listener, String... topics)
-
unsubscribeAsync
CompletableFuture<Integer> unsubscribeAsync(CacheEventListener listener, String... topics)
-
publish
default <T> int publish(String topic, T message)
-
publish
default int publish(String topic, byte[] message)
-
publishAsync
default <T> CompletableFuture<Integer> publishAsync(String topic, T message)
-
publishAsync
default <T> CompletableFuture<Integer> publishAsync(String topic, Convert convert, T message)
-
publishAsync
default <T> CompletableFuture<Integer> publishAsync(String topic, Type messageType, T message)
-
publishAsync
default <T> CompletableFuture<Integer> publishAsync(String topic, Convert convert, Type messageType, T message)
-
publishAsync
CompletableFuture<Integer> publishAsync(String topic, byte[] message)
-
rateLimit
default long rateLimit(String key, long rate, long capacity, long requested)
令牌桶算法限流, 返回负数表示无令牌, 其他为有令牌每秒限制请求1次: rate:1, capacity:1, requested:1 每秒限制请求10次: rate:10, capacity:10, requested:1 每分钟限制请求1次: rate:1, capacity:60, requested:60 每分钟限制请求10次: rate:1, capacity:60, requested:6 每小时限制请求1次: rate:1, capacity:3600, requested:3600 每小时限制请求10次: rate:1, capacity:3600, requested:360
- 参数:
key
- 限流的键rate
- 令牌桶每秒填充平均速率capacity
- 令牌桶总容量requested
- 需要的令牌数- 返回:
- 可用令牌数
-
rateLimit
default long rateLimit(String key, long rate, long capacity)
令牌桶算法限流, 返回负数表示无令牌, 其他为有令牌每秒限制请求1次: rate:1, capacity:1, requested:1 每秒限制请求10次: rate:10, capacity:10, requested:1 每分钟限制请求1次: rate:1, capacity:60, requested:60 每分钟限制请求10次: rate:1, capacity:60, requested:6 每小时限制请求1次: rate:1, capacity:3600, requested:3600 每小时限制请求10次: rate:1, capacity:3600, requested:360
- 参数:
key
- 限流的键rate
- 令牌桶每秒填充平均速率capacity
- 令牌桶总容量- 返回:
- 可用令牌数
-
rateLimitAsync
CompletableFuture<Long> rateLimitAsync(String key, long rate, long capacity, long requested)
令牌桶算法限流, 返回负数表示无令牌, 其他为有令牌每秒限制请求1次: rate:1, capacity:1, requested:1 每秒限制请求10次: rate:10, capacity:10, requested:1 每分钟限制请求1次: rate:1, capacity:60, requested:60 每分钟限制请求10次: rate:1, capacity:60, requested:6 每小时限制请求1次: rate:1, capacity:3600, requested:3600 每小时限制请求10次: rate:1, capacity:3600, requested:360
- 参数:
key
- 限流的键rate
- 令牌桶每秒填充平均速率capacity
- 令牌桶总容量requested
- 需要的令牌数- 返回:
- 可用令牌数
-
rateLimitAsync
default CompletableFuture<Long> rateLimitAsync(String key, long rate, long capacity)
令牌桶算法限流, 返回负数表示无令牌, 其他为有令牌每秒限制请求1次: rate:1, capacity:1, requested:1 每秒限制请求10次: rate:10, capacity:10, requested:1 每分钟限制请求1次: rate:1, capacity:60, requested:60 每分钟限制请求10次: rate:1, capacity:60, requested:6 每小时限制请求1次: rate:1, capacity:3600, requested:3600 每小时限制请求10次: rate:1, capacity:3600, requested:360
- 参数:
key
- 限流的键rate
- 令牌桶每秒填充平均速率capacity
- 令牌桶总容量- 返回:
- 可用令牌数
-
lock
default boolean lock(String key, int expireSeconds)
-
unlock
default void unlock(String key)
-
lockAsync
default CompletableFuture<Boolean> lockAsync(String key, int expireSeconds)
-
unlockAsync
default CompletableFuture<Void> unlockAsync(String key)
-
incr
default long incr(String key)
-
incrby
default long incrby(String key, long num)
-
incrbyFloat
default double incrbyFloat(String key, double num)
-
decr
default long decr(String key)
-
decrby
default long decrby(String key, long num)
-
setLong
default void setLong(String key, long value)
-
mset
default void mset(Serializable... keyVals)
-
mset
default void mset(Map map)
-
msetnx
default boolean msetnx(Serializable... keyVals)
-
msetnx
default boolean msetnx(Map map)
-
setnxLong
default boolean setnxLong(String key, long value)
-
setexLong
default void setexLong(String key, int expireSeconds, long value)
-
psetexLong
default void psetexLong(String key, long milliSeconds, long value)
-
setnxex
default <T> boolean setnxex(String key, int expireSeconds, Convert convert, Type type, T value)
-
setnxexLong
default boolean setnxexLong(String key, int expireSeconds, long value)
-
setnxpx
default <T> boolean setnxpx(String key, long milliSeconds, Convert convert, Type type, T value)
-
setnxpxLong
default boolean setnxpxLong(String key, long milliSeconds, long value)
-
getLong
default long getLong(String key, long defValue)
-
getexLong
default long getexLong(String key, int expireSeconds, long defValue)
-
getSetLong
default long getSetLong(String key, long value, long defValue)
-
getDelLong
default long getDelLong(String key, long defValue)
-
del
default long del(String... keys)
-
exists
default boolean exists(String key)
-
expire
default void expire(String key, int expireSeconds)
-
pexpire
default void pexpire(String key, long milliSeconds)
-
ttl
default long ttl(String key)
-
pttl
default long pttl(String key)
-
expireAt
default void expireAt(String key, long secondsTime)
-
pexpireAt
default void pexpireAt(String key, long milliTime)
-
pexpireTime
default long pexpireTime(String key)
-
expireTime
default long expireTime(String key)
-
persist
default boolean persist(String key)
-
scan
default List<String> scan(AtomicLong cursor, int limit, String pattern)
-
scan
default List<String> scan(AtomicLong cursor, int limit)
-
dbsize
default long dbsize()
-
flushdb
default void flushdb()
-
flushall
default void flushall()
-
hlen
default long hlen(String key)
-
hmset
default void hmset(String key, Serializable... values)
-
hscan
default <T> Map<String,T> hscan(String key, Type type, AtomicLong cursor, int limit, String pattern)
-
hscan
default <T> Map<String,T> hscan(String key, Type type, AtomicLong cursor, int limit)
-
llen
default long llen(String key)
-
ltrim
default void ltrim(String key, int start, int stop)
-
lremLong
default long lremLong(String key, long value)
-
srandmemberString
default CompletableFuture<String> srandmemberString(String key)
-
scard
default long scard(String key)
-
sismemberLong
default boolean sismemberLong(String key, long value)
-
sscan
default <T> Set<T> sscan(String key, Type componentType, AtomicLong cursor, int limit, String pattern)
-
sscanString
default Set<String> sscanString(String key, AtomicLong cursor, int limit, String pattern)
-
sscanLong
default Set<Long> sscanLong(String key, AtomicLong cursor, int limit, String pattern)
-
sscan
default <T> Set<T> sscan(String key, Type componentType, AtomicLong cursor, int limit)
-
sscanString
default Set<String> sscanString(String key, AtomicLong cursor, int limit)
-
sscanLong
default Set<Long> sscanLong(String key, AtomicLong cursor, int limit)
-
zadd
default void zadd(String key, CacheScoredValue... values)
-
zincrby
default <T extends Number> T zincrby(String key, CacheScoredValue value)
-
zmscore
default <T extends Number> List<T> zmscore(String key, Class<T> scoreType, String... members)
-
zcard
default long zcard(String key)
-
zscan
default List<CacheScoredValue> zscan(String key, Type scoreType, AtomicLong cursor, int limit, String pattern)
-
zscanInteger
default List<CacheScoredValue> zscanInteger(String key, AtomicLong cursor, int limit, String pattern)
-
zscanLong
default List<CacheScoredValue> zscanLong(String key, AtomicLong cursor, int limit, String pattern)
-
zscanDouble
default List<CacheScoredValue> zscanDouble(String key, AtomicLong cursor, int limit, String pattern)
-
zscan
default List<CacheScoredValue> zscan(String key, Type scoreType, AtomicLong cursor, int limit)
-
zscanInteger
default List<CacheScoredValue> zscanInteger(String key, AtomicLong cursor, int limit)
-
zscanLong
default List<CacheScoredValue> zscanLong(String key, AtomicLong cursor, int limit)
-
zscanDouble
default List<CacheScoredValue> zscanDouble(String key, AtomicLong cursor, int limit)
-
isOpenAsync
CompletableFuture<Boolean> isOpenAsync()
-
incrAsync
CompletableFuture<Long> incrAsync(String key)
-
incrbyAsync
CompletableFuture<Long> incrbyAsync(String key, long num)
-
decrAsync
CompletableFuture<Long> decrAsync(String key)
-
decrbyAsync
CompletableFuture<Long> decrbyAsync(String key, long num)
-
incrbyFloatAsync
CompletableFuture<Double> incrbyFloatAsync(String key, double num)
-
setAsync
<T> CompletableFuture<Void> setAsync(String key, Convert convert, Type type, T value)
-
setAsync
default <T> CompletableFuture<Void> setAsync(String key, Type type, T value)
-
setStringAsync
default CompletableFuture<Void> setStringAsync(String key, String value)
-
setLongAsync
default CompletableFuture<Void> setLongAsync(String key, long value)
-
msetAsync
CompletableFuture<Void> msetAsync(Serializable... keyVals)
-
msetAsync
CompletableFuture<Void> msetAsync(Map map)
-
msetnxAsync
CompletableFuture<Boolean> msetnxAsync(Serializable... keyVals)
-
msetnxAsync
CompletableFuture<Boolean> msetnxAsync(Map map)
-
setnxAsync
<T> CompletableFuture<Boolean> setnxAsync(String key, Convert convert, Type type, T value)
-
setnxAsync
default <T> CompletableFuture<Boolean> setnxAsync(String key, Type type, T value)
-
setnxStringAsync
default CompletableFuture<Boolean> setnxStringAsync(String key, String value)
-
setnxLongAsync
default CompletableFuture<Boolean> setnxLongAsync(String key, long value)
-
setexAsync
<T> CompletableFuture<Void> setexAsync(String key, int expireSeconds, Convert convert, Type type, T value)
-
setexAsync
default <T> CompletableFuture<Void> setexAsync(String key, int expireSeconds, Type type, T value)
-
setexStringAsync
default CompletableFuture<Void> setexStringAsync(String key, int expireSeconds, String value)
-
setexLongAsync
default CompletableFuture<Void> setexLongAsync(String key, int expireSeconds, long value)
-
psetexAsync
<T> CompletableFuture<Void> psetexAsync(String key, long milliSeconds, Convert convert, Type type, T value)
-
psetexAsync
default <T> CompletableFuture<Void> psetexAsync(String key, long milliSeconds, Type type, T value)
-
psetexStringAsync
default CompletableFuture<Void> psetexStringAsync(String key, long milliSeconds, String value)
-
psetexLongAsync
default CompletableFuture<Void> psetexLongAsync(String key, long milliSeconds, long value)
-
setnxexAsync
<T> CompletableFuture<Boolean> setnxexAsync(String key, int expireSeconds, Convert convert, Type type, T value)
-
setnxexAsync
default <T> CompletableFuture<Boolean> setnxexAsync(String key, int expireSeconds, Type type, T value)
-
setnxexStringAsync
default CompletableFuture<Boolean> setnxexStringAsync(String key, int expireSeconds, String value)
-
setnxexLongAsync
default CompletableFuture<Boolean> setnxexLongAsync(String key, int expireSeconds, long value)
-
setnxpxAsync
<T> CompletableFuture<Boolean> setnxpxAsync(String key, long milliSeconds, Convert convert, Type type, T value)
-
setnxpxAsync
default <T> CompletableFuture<Boolean> setnxpxAsync(String key, long milliSeconds, Type type, T value)
-
setnxpxStringAsync
default CompletableFuture<Boolean> setnxpxStringAsync(String key, long milliSeconds, String value)
-
setnxpxLongAsync
default CompletableFuture<Boolean> setnxpxLongAsync(String key, long milliSeconds, long value)
-
getAsync
<T> CompletableFuture<T> getAsync(String key, Type type)
-
getStringAsync
default CompletableFuture<String> getStringAsync(String key)
-
getLongAsync
default CompletableFuture<Long> getLongAsync(String key, long defValue)
-
getLongAsync
default CompletableFuture<Long> getLongAsync(String key)
-
mgetAsync
<T> CompletableFuture<List<T>> mgetAsync(Type componentType, String... keys)
-
mgetStringAsync
default CompletableFuture<List<String>> mgetStringAsync(String... keys)
-
mgetLongAsync
default CompletableFuture<List<Long>> mgetLongAsync(String... keys)
-
mgetsAsync
default <T> CompletableFuture<Map<String,T>> mgetsAsync(Type componentType, String... keys)
-
mgetsStringAsync
default CompletableFuture<Map<String,String>> mgetsStringAsync(String... keys)
-
mgetsLongAsync
default CompletableFuture<Map<String,Long>> mgetsLongAsync(String... keys)
-
getexAsync
<T> CompletableFuture<T> getexAsync(String key, int expireSeconds, Type type)
获取key的值并可选择设置其过期时间- 类型参数:
T
- 泛型- 参数:
key
- 键expireSeconds
- 过期秒数type
- key值的类型- 返回:
- key的值
-
getexStringAsync
default CompletableFuture<String> getexStringAsync(String key, int expireSeconds)
-
getexLongAsync
default CompletableFuture<Long> getexLongAsync(String key, int expireSeconds, long defValue)
-
getexLongAsync
default CompletableFuture<Long> getexLongAsync(String key, int expireSeconds)
-
getSetAsync
<T> CompletableFuture<T> getSetAsync(String key, Convert convert, Type type, T value)
-
getSetAsync
default <T> CompletableFuture<T> getSetAsync(String key, Type type, T value)
-
getSetStringAsync
default CompletableFuture<String> getSetStringAsync(String key, String value)
-
getSetLongAsync
default CompletableFuture<Long> getSetLongAsync(String key, long value, long defValue)
-
getSetLongAsync
default CompletableFuture<Long> getSetLongAsync(String key, long value)
-
getDelAsync
<T> CompletableFuture<T> getDelAsync(String key, Type type)
-
getDelStringAsync
default CompletableFuture<String> getDelStringAsync(String key)
-
getDelLongAsync
default CompletableFuture<Long> getDelLongAsync(String key, long defValue)
-
getDelLongAsync
default CompletableFuture<Long> getDelLongAsync(String key)
-
delexAsync
CompletableFuture<Long> delexAsync(String key, String expectedValue)
-
delAsync
CompletableFuture<Long> delAsync(String... keys)
-
existsAsync
CompletableFuture<Boolean> existsAsync(String key)
-
expireAsync
CompletableFuture<Void> expireAsync(String key, int seconds)
-
pexpireAsync
CompletableFuture<Void> pexpireAsync(String key, long milliSeconds)
-
ttlAsync
CompletableFuture<Long> ttlAsync(String key)
-
pttlAsync
CompletableFuture<Long> pttlAsync(String key)
-
expireAtAsync
CompletableFuture<Void> expireAtAsync(String key, long secondsTime)
-
expireTimeAsync
CompletableFuture<Long> expireTimeAsync(String key)
-
pexpireAtAsync
CompletableFuture<Void> pexpireAtAsync(String key, long milliTime)
-
pexpireTimeAsync
CompletableFuture<Long> pexpireTimeAsync(String key)
-
keysAsync
CompletableFuture<List<String>> keysAsync(String pattern)
-
keysAsync
default CompletableFuture<List<String>> keysAsync()
-
keysStartsWithAsync
default CompletableFuture<List<String>> keysStartsWithAsync(String startsWith)
-
persistAsync
CompletableFuture<Boolean> persistAsync(String key)
-
renameAsync
CompletableFuture<Boolean> renameAsync(String oldKey, String newKey)
-
renamenxAsync
CompletableFuture<Boolean> renamenxAsync(String oldKey, String newKey)
-
scanAsync
CompletableFuture<List<String>> scanAsync(AtomicLong cursor, int limit, String pattern)
-
scanAsync
default CompletableFuture<List<String>> scanAsync(AtomicLong cursor, int limit)
-
dbsizeAsync
CompletableFuture<Long> dbsizeAsync()
-
flushdbAsync
CompletableFuture<Void> flushdbAsync()
-
flushallAsync
CompletableFuture<Void> flushallAsync()
-
hgetAsync
<T> CompletableFuture<T> hgetAsync(String key, String field, Type type)
-
hgetStringAsync
default CompletableFuture<String> hgetStringAsync(String key, String field)
-
hgetLongAsync
default CompletableFuture<Long> hgetLongAsync(String key, String field, long defValue)
-
hgetLongAsync
default CompletableFuture<Long> hgetLongAsync(String key, String field)
-
hsetAsync
<T> CompletableFuture<Void> hsetAsync(String key, String field, Convert convert, Type type, T value)
-
hsetAsync
default <T> CompletableFuture<Void> hsetAsync(String key, String field, Type type, T value)
-
hsetStringAsync
default CompletableFuture<Void> hsetStringAsync(String key, String field, String value)
-
hsetLongAsync
default CompletableFuture<Void> hsetLongAsync(String key, String field, long value)
-
hsetnxAsync
<T> CompletableFuture<Boolean> hsetnxAsync(String key, String field, Convert convert, Type type, T value)
-
hsetnxAsync
default <T> CompletableFuture<Boolean> hsetnxAsync(String key, String field, Type type, T value)
-
hsetnxStringAsync
default CompletableFuture<Boolean> hsetnxStringAsync(String key, String field, String value)
-
hsetnxLongAsync
default CompletableFuture<Boolean> hsetnxLongAsync(String key, String field, long value)
-
hstrlenAsync
CompletableFuture<Long> hstrlenAsync(String key, String field)
-
hgetallAsync
<T> CompletableFuture<Map<String,T>> hgetallAsync(String key, Type type)
-
hgetallStringAsync
default CompletableFuture<Map<String,String>> hgetallStringAsync(String key)
-
hgetallLongAsync
default CompletableFuture<Map<String,Long>> hgetallLongAsync(String key)
-
hvalsAsync
<T> CompletableFuture<List<T>> hvalsAsync(String key, Type type)
-
hvalsStringAsync
default CompletableFuture<List<String>> hvalsStringAsync(String key)
-
hvalsLongAsync
default CompletableFuture<List<Long>> hvalsLongAsync(String key)
-
hdelAsync
CompletableFuture<Long> hdelAsync(String key, String... fields)
-
hkeysAsync
CompletableFuture<List<String>> hkeysAsync(String key)
-
hlenAsync
CompletableFuture<Long> hlenAsync(String key)
-
hincrAsync
CompletableFuture<Long> hincrAsync(String key, String field)
-
hincrbyAsync
CompletableFuture<Long> hincrbyAsync(String key, String field, long num)
-
hincrbyFloatAsync
CompletableFuture<Double> hincrbyFloatAsync(String key, String field, double num)
-
hdecrAsync
CompletableFuture<Long> hdecrAsync(String key, String field)
-
hdecrbyAsync
CompletableFuture<Long> hdecrbyAsync(String key, String field, long num)
-
hexistsAsync
CompletableFuture<Boolean> hexistsAsync(String key, String field)
-
hmsetAsync
CompletableFuture<Void> hmsetAsync(String key, Serializable... values)
-
hmsetAsync
CompletableFuture<Void> hmsetAsync(String key, Map map)
-
hmgetAsync
<T> CompletableFuture<List<T>> hmgetAsync(String key, Type type, String... fields)
-
hmgetStringAsync
default CompletableFuture<List<String>> hmgetStringAsync(String key, String... fields)
-
hmgetLongAsync
default CompletableFuture<List<Long>> hmgetLongAsync(String key, String... fields)
-
hscanAsync
<T> CompletableFuture<Map<String,T>> hscanAsync(String key, Type type, AtomicLong cursor, int limit, String pattern)
-
hscanAsync
default <T> CompletableFuture<Map<String,T>> hscanAsync(String key, Type type, AtomicLong cursor, int limit)
-
lindexAsync
<T> CompletableFuture<T> lindexAsync(String key, Type componentType, int index)
-
lindexStringAsync
default CompletableFuture<String> lindexStringAsync(String key, int index)
-
lindexLongAsync
default CompletableFuture<Long> lindexLongAsync(String key, int index)
-
linsertBeforeAsync
<T> CompletableFuture<Long> linsertBeforeAsync(String key, Type componentType, T pivot, T value)
-
linsertBeforeStringAsync
default CompletableFuture<Long> linsertBeforeStringAsync(String key, String pivot, String value)
-
linsertBeforeLongAsync
default CompletableFuture<Long> linsertBeforeLongAsync(String key, Long pivot, Long value)
-
linsertAfterAsync
<T> CompletableFuture<Long> linsertAfterAsync(String key, Type componentType, T pivot, T value)
-
linsertAfterStringAsync
default CompletableFuture<Long> linsertAfterStringAsync(String key, String pivot, String value)
-
linsertAfterLongAsync
default CompletableFuture<Long> linsertAfterLongAsync(String key, Long pivot, Long value)
-
llenAsync
CompletableFuture<Long> llenAsync(String key)
-
ltrimAsync
CompletableFuture<Void> ltrimAsync(String key, int start, int stop)
-
lrangesAsync
<T> CompletableFuture<Map<String,List<T>>> lrangesAsync(Type componentType, String... keys)
-
lrangesStringAsync
default CompletableFuture<Map<String,List<String>>> lrangesStringAsync(String... keys)
-
lrangesLongAsync
default CompletableFuture<Map<String,List<Long>>> lrangesLongAsync(String... keys)
-
lrangeAsync
<T> CompletableFuture<List<T>> lrangeAsync(String key, Type componentType, int start, int stop)
-
lrangeStringAsync
default CompletableFuture<List<String>> lrangeStringAsync(String key, int start, int stop)
-
lrangeLongAsync
default CompletableFuture<List<Long>> lrangeLongAsync(String key, int start, int stop)
-
lrangeAsync
default <T> CompletableFuture<List<T>> lrangeAsync(String key, Type componentType)
-
lrangeStringAsync
default CompletableFuture<List<String>> lrangeStringAsync(String key)
-
lrangeLongAsync
default CompletableFuture<List<Long>> lrangeLongAsync(String key)
-
lpopAsync
<T> CompletableFuture<T> lpopAsync(String key, Type componentType)
-
lpopStringAsync
default CompletableFuture<String> lpopStringAsync(String key)
-
lpopLongAsync
default CompletableFuture<Long> lpopLongAsync(String key)
-
lpushAsync
<T> CompletableFuture<Void> lpushAsync(String key, Type componentType, T... values)
-
lpushStringAsync
default CompletableFuture<Void> lpushStringAsync(String key, String... values)
-
lpushLongAsync
default CompletableFuture<Void> lpushLongAsync(String key, Long... values)
-
lpushxAsync
<T> CompletableFuture<Void> lpushxAsync(String key, Type componentType, T... values)
-
lpushxStringAsync
default CompletableFuture<Void> lpushxStringAsync(String key, String... values)
-
lpushxLongAsync
default CompletableFuture<Void> lpushxLongAsync(String key, Long... values)
-
rpushxAsync
<T> CompletableFuture<Void> rpushxAsync(String key, Type componentType, T... values)
-
rpushxStringAsync
default CompletableFuture<Void> rpushxStringAsync(String key, String... values)
-
rpushxLongAsync
default CompletableFuture<Void> rpushxLongAsync(String key, Long... values)
-
rpopAsync
<T> CompletableFuture<T> rpopAsync(String key, Type componentType)
-
rpopStringAsync
default CompletableFuture<String> rpopStringAsync(String key)
-
rpopLongAsync
default CompletableFuture<Long> rpopLongAsync(String key)
-
rpoplpushAsync
<T> CompletableFuture<T> rpoplpushAsync(String key, String key2, Type componentType)
-
rpoplpushStringAsync
default CompletableFuture<String> rpoplpushStringAsync(String key, String key2)
-
rpoplpushLongAsync
default CompletableFuture<Long> rpoplpushLongAsync(String key, String key2)
-
lremAsync
<T> CompletableFuture<Long> lremAsync(String key, Type componentType, T value)
-
lremStringAsync
default CompletableFuture<Long> lremStringAsync(String key, String value)
-
lremLongAsync
default CompletableFuture<Long> lremLongAsync(String key, long value)
-
rpushAsync
<T> CompletableFuture<Void> rpushAsync(String key, Type componentType, T... values)
-
rpushStringAsync
default CompletableFuture<Void> rpushStringAsync(String key, String... values)
-
rpushLongAsync
default CompletableFuture<Void> rpushLongAsync(String key, Long... values)
-
saddAsync
<T> CompletableFuture<Void> saddAsync(String key, Type componentType, T... values)
-
saddStringAsync
default CompletableFuture<Void> saddStringAsync(String key, String... values)
-
saddLongAsync
default CompletableFuture<Void> saddLongAsync(String key, Long... values)
-
sdiffAsync
<T> CompletableFuture<Set<T>> sdiffAsync(String key, Type componentType, String... key2s)
-
sdiffStringAsync
default CompletableFuture<Set<String>> sdiffStringAsync(String key, String... key2s)
-
sdiffLongAsync
default CompletableFuture<Set<Long>> sdiffLongAsync(String key, String... key2s)
-
smoveAsync
<T> CompletableFuture<Boolean> smoveAsync(String key, String key2, Type componentType, T member)
-
smoveStringAsync
default CompletableFuture<Boolean> smoveStringAsync(String key, String key2, String member)
-
smoveLongAsync
default CompletableFuture<Boolean> smoveLongAsync(String key, String key2, Long member)
-
srandmemberAsync
<T> CompletableFuture<List<T>> srandmemberAsync(String key, Type componentType, int count)
-
srandmemberStringAsync
default CompletableFuture<List<String>> srandmemberStringAsync(String key, int count)
-
srandmemberLongAsync
default CompletableFuture<List<Long>> srandmemberLongAsync(String key, int count)
-
srandmemberAsync
default <T> CompletableFuture<T> srandmemberAsync(String key, Type componentType)
-
srandmemberStringAsync
default CompletableFuture<String> srandmemberStringAsync(String key)
-
srandmemberLongAsync
default CompletableFuture<Long> srandmemberLongAsync(String key)
-
sdiffstoreAsync
CompletableFuture<Long> sdiffstoreAsync(String key, String srcKey, String... srcKey2s)
-
sinterAsync
<T> CompletableFuture<Set<T>> sinterAsync(String key, Type componentType, String... key2s)
-
sinterStringAsync
default CompletableFuture<Set<String>> sinterStringAsync(String key, String... key2s)
-
sinterLongAsync
default CompletableFuture<Set<Long>> sinterLongAsync(String key, String... key2s)
-
sinterstoreAsync
CompletableFuture<Long> sinterstoreAsync(String key, String srcKey, String... srcKey2s)
-
sunionAsync
<T> CompletableFuture<Set<T>> sunionAsync(String key, Type componentType, String... key2s)
-
sunionStringAsync
default CompletableFuture<Set<String>> sunionStringAsync(String key, String... key2s)
-
sunionLongAsync
default CompletableFuture<Set<Long>> sunionLongAsync(String key, String... key2s)
-
sunionstoreAsync
CompletableFuture<Long> sunionstoreAsync(String key, String srcKey, String... srcKey2s)
-
scardAsync
CompletableFuture<Long> scardAsync(String key)
-
smembersAsync
<T> CompletableFuture<Set<T>> smembersAsync(String key, Type componentType)
-
smembersStringAsync
default CompletableFuture<Set<String>> smembersStringAsync(String key)
-
smembersLongAsync
default CompletableFuture<Set<Long>> smembersLongAsync(String key)
-
smembersAsync
<T> CompletableFuture<Map<String,Set<T>>> smembersAsync(Type componentType, String... keys)
-
smembersStringAsync
default CompletableFuture<Map<String,Set<String>>> smembersStringAsync(String... keys)
-
smembersLongAsync
default CompletableFuture<Map<String,Set<Long>>> smembersLongAsync(String... keys)
-
sismemberAsync
<T> CompletableFuture<Boolean> sismemberAsync(String key, Type componentType, T value)
-
sismemberStringAsync
default CompletableFuture<Boolean> sismemberStringAsync(String key, String value)
-
sismemberLongAsync
default CompletableFuture<Boolean> sismemberLongAsync(String key, long value)
-
smismembersAsync
<T> CompletableFuture<List<Boolean>> smismembersAsync(String key, String... members)
-
sremAsync
<T> CompletableFuture<Long> sremAsync(String key, Type componentType, T... values)
-
sremStringAsync
default CompletableFuture<Long> sremStringAsync(String key, String... values)
-
sremLongAsync
default CompletableFuture<Long> sremLongAsync(String key, Long... values)
-
spopAsync
<T> CompletableFuture<T> spopAsync(String key, Type componentType)
-
spopStringAsync
default CompletableFuture<String> spopStringAsync(String key)
-
spopLongAsync
default CompletableFuture<Long> spopLongAsync(String key)
-
spopAsync
<T> CompletableFuture<Set<T>> spopAsync(String key, int count, Type componentType)
-
spopStringAsync
default CompletableFuture<Set<String>> spopStringAsync(String key, int count)
-
spopLongAsync
default CompletableFuture<Set<Long>> spopLongAsync(String key, int count)
-
sscanAsync
<T> CompletableFuture<Set<T>> sscanAsync(String key, Type componentType, AtomicLong cursor, int limit, String pattern)
-
sscanStringAsync
default CompletableFuture<Set<String>> sscanStringAsync(String key, AtomicLong cursor, int limit, String pattern)
-
sscanLongAsync
default CompletableFuture<Set<Long>> sscanLongAsync(String key, AtomicLong cursor, int limit, String pattern)
-
sscanAsync
default <T> CompletableFuture<Set<T>> sscanAsync(String key, Type componentType, AtomicLong cursor, int limit)
-
sscanStringAsync
default CompletableFuture<Set<String>> sscanStringAsync(String key, AtomicLong cursor, int limit)
-
sscanLongAsync
default CompletableFuture<Set<Long>> sscanLongAsync(String key, AtomicLong cursor, int limit)
-
zaddAsync
CompletableFuture<Void> zaddAsync(String key, CacheScoredValue... values)
-
zaddAsync
default CompletableFuture<Void> zaddAsync(String key, int score, String member)
-
zaddA
-
-