K
- V
- public interface RedisAPI<K,V>
extends java.io.Closeable
支持的日志操作:restore, dump, execute, delete, expire, keys, hasKey, getExpire, rename, renameIfAbsent, sort, randomKey, persist, expireAt
支持的审计操作:put, delete, set, rename, persist, expireAt
限定符和类型 | 方法和说明 |
---|---|
void |
close()
关闭相关连接资源
|
default long |
delete(java.util.Collection<K> keys)
已过时。
|
default long |
delete(K key)
已过时。
|
default void |
discard()
已过时。
|
default byte[] |
dump(K key)
Retrieve serialized version of the value stored at
key . |
default <T> T |
execute(<any> action)
已过时。
|
default java.lang.Boolean |
expire(K key,
long timeout,
java.util.concurrent.TimeUnit unit)
已过时。
|
default java.lang.Boolean |
expireAt(K key,
java.util.Date date)
已过时。
|
default BaseRedisCommands |
getBaseRedisCommands()
redisCommands
|
default StatefulConnection |
getConnect() |
default java.lang.Long |
getExpire(K key)
已过时。
|
default java.lang.Long |
getExpire(K key,
java.util.concurrent.TimeUnit timeUnit)
已过时。
|
default <any> |
getHashKeySerializer()
已过时。
|
default <any> |
getHashValueSerializer()
已过时。
|
default <any> |
getKeySerializer()
已过时。
|
default <any> |
getValueSerializer()
已过时。
|
default HashCommandOps |
hashCommandOps()
hashCommandOps
|
default java.lang.Boolean |
hasKey(K key)
已过时。
|
default HyperLogLogCommandOps |
hyperLogLogCommand()
hyperLogLogCommand
|
default KeyCommandOps |
keyCommand()
keyCommand
|
default java.util.Set<K> |
keys(K pattern)
已过时。
|
default ListCommandOps |
listCommandOps()
listCommandOps
|
default void |
multi()
已过时。
|
default <HK,HV> <any> |
opsForHash()
已过时。
Use the corresponding @link com.actionsoft.sdk.local.api.cc.RedisAPI.hashCommandOps() method on the connection
|
default <any> |
opsForList()
已过时。
Use the corresponding @link com.actionsoft.sdk.local.api.cc.RedisAPI.listCommandOps() method on the connection
|
default <any> |
opsForSet()
已过时。
Use the corresponding @link com.actionsoft.sdk.local.api.cc.RedisAPI.setCommands() method on the connection
|
default <any> |
opsForValue()
已过时。
|
default <any> |
opsForZSet()
已过时。
Use the corresponding @link com.actionsoft.sdk.local.api.cc.RedisAPI.sortedSetCommands() method on the connection
|
default <HK,HV> <any> |
opsHash(K key)
已过时。
Use the corresponding @link com.actionsoft.sdk.local.api.cc.RedisAPI.hashCommandOps() method on the connection
|
default <any> |
opsList(K key)
已过时。
Use the corresponding @link com.actionsoft.sdk.local.api.cc.RedisAPI.listCommandOps() method on the connection
|
default <any> |
opsSet(K key)
已过时。
Use the corresponding @link com.actionsoft.sdk.local.api.cc.RedisAPI.setCommands() method on the connection
|
default <any> |
opsValue(K key)
已过时。
use #replicas(Object) instead.
|
default <any> |
opsZSet(K key)
已过时。
Use the corresponding @link com.actionsoft.sdk.local.api.cc.RedisAPI.sortedSetCommands() method on the connection
|
default java.lang.Boolean |
persist(K key)
已过时。
|
default java.lang.String |
ping() |
default K |
randomKey()
已过时。
|
default RedisAdvancedClusterCommands |
redisAdvancedClusterCommands()
redisCommands
|
default RedisCommands |
redisCommands()
redisCommands
|
default void |
rename(K oldKey,
K newKey)
已过时。
|
default java.lang.Boolean |
renameIfAbsent(K oldKey,
K newKey)
已过时。
|
default void |
restore(K key,
byte[] value,
long timeToLive,
java.util.concurrent.TimeUnit unit)
已过时。
|
default RedisAPI<K,V> |
serializer(<any> defSerializer)
已过时。
|
default RedisAPI<K,V> |
serializer(<any> keySerializer,
<any> valueSerializer)
已过时。
|
default RedisAPI<K,V> |
serializer(<any> keySerializer,
<any> valueSerializer,
<any> hashKeySerializer,
<any> hashValueSerializer)
设置key,value,hashKey,hashValue Serializer
|
default SetCommandOps |
setCommands()
setCommands
|
default java.util.List<V> |
sort(<any> query)
已过时。
|
default <T> java.util.List<T> |
sort(<any> query,
<any> resultSerializer)
已过时。
|
default <T> java.util.List<T> |
sort(<any> query,
<any> bulkMapper)
已过时。
|
default <T,S> java.util.List<T> |
sort(<any> query,
<any> bulkMapper,
<any> resultSerializer)
已过时。
|
default java.lang.Long |
sort(<any> query,
K storeKey)
已过时。
|
default SortedSetCommandOps |
sortedSetCommands()
sortedSetCommands
|
default StringCommandOps |
stringCommandOps()
stringCommandOps
|
default void |
unwatch()
已过时。
|
default void |
watch(java.util.Collection<K> keys)
已过时。
|
default void |
watch(K key)
已过时。
|
void close()
close
在接口中 java.lang.AutoCloseable
close
在接口中 java.io.Closeable
default byte[] dump(K key)
key
.key
- must not be null.@Deprecated default void restore(K key, byte[] value, long timeToLive, java.util.concurrent.TimeUnit unit)
key
- must not be null.value
- must not be null.timeToLive
- unit
- must not be null.@Deprecated default <any> getKeySerializer()
Serializer
.@Deprecated default <any> getValueSerializer()
Serializer
.@Deprecated default <any> getHashKeySerializer()
Serializer
.@Deprecated default <any> getHashValueSerializer()
Serializer
.@Deprecated default <any> opsForValue()
@Deprecated default <any> opsForSet()
@Deprecated default <any> opsForZSet()
@Deprecated default <any> opsForList()
@Deprecated default <HK,HV> <any> opsForHash()
HK
- hash key (or field) typeHV
- hash value type@Deprecated default <HK,HV> <any> opsHash(K key)
HK
- hash key (or field) typeHV
- hash value typekey
- Redis key@Deprecated default <any> opsList(K key)
key
- Redis key@Deprecated default <any> opsSet(K key)
key
- Redis key@Deprecated default <any> opsValue(K key)
key
- Redis key@Deprecated default <any> opsZSet(K key)
key
- Redis key@Deprecated default <T> T execute(<any> action)
@Deprecated default long delete(K key)
key
.key
- must not be null.@Deprecated default long delete(java.util.Collection<K> keys)
keys
.keys
- must not be null.@Deprecated default java.lang.Boolean expire(K key, long timeout, java.util.concurrent.TimeUnit unit)
key
..key
- must not be null.timeout
- 超时时间值unit
- must not be null.@Deprecated default java.lang.Boolean expireAt(K key, java.util.Date date)
key
as a date timestamp.key
- must not be null.date
- must not be null.@Deprecated default java.lang.Boolean persist(K key)
key
.key
- must not be null.@Deprecated default java.lang.Long getExpire(K key)
key
in seconds.key
- must not be null.@Deprecated default java.lang.Long getExpire(K key, java.util.concurrent.TimeUnit timeUnit)
key
in and convert it to the given TimeUnit
.key
- must not be null.timeUnit
- must not be null.@Deprecated default java.lang.Boolean hasKey(K key)
key
exists.key
- must not be null.@Deprecated default java.util.Set<K> keys(K pattern)
pattern
.pattern
- must not be null.@Deprecated default K randomKey()
@Deprecated default void rename(K oldKey, K newKey)
oldKey
to newKey
.oldKey
- must not be null.newKey
- must not be null.@Deprecated default java.lang.Boolean renameIfAbsent(K oldKey, K newKey)
oleName
to newKey
only if newKey
does not exist.oldKey
- must not be null.newKey
- must not be null.@Deprecated default java.util.List<V> sort(<any> query)
query
.query
- must not be null.@Deprecated default <T> java.util.List<T> sort(<any> query, <any> resultSerializer)
query
applying Serializer
.query
- must not be null.@Deprecated default <T> java.util.List<T> sort(<any> query, <any> bulkMapper)
query
applying BulkMapper
.query
- must not be null.@Deprecated default <T,S> java.util.List<T> sort(<any> query, <any> bulkMapper, <any> resultSerializer)
query
applying BulkMapper
and Serializer
.query
- must not be null.@Deprecated default java.lang.Long sort(<any> query, K storeKey)
query
and store result in storeKey
.query
- must not be null.storeKey
- must not be null.@Deprecated default void watch(K key)
key
for modifications during transaction started with multi()
.key
- must not be null.@Deprecated default void watch(java.util.Collection<K> keys)
keys
for modifications during transaction started with multi()
.keys
- must not be null.@Deprecated default void unwatch()
watch(Object)
keys.@Deprecated default void multi()
#exec()
or rolled back using discard()
@Deprecated default void discard()
multi()
.@Deprecated default RedisAPI<K,V> serializer(<any> keySerializer, <any> valueSerializer)
default RedisAPI<K,V> serializer(<any> keySerializer, <any> valueSerializer, <any> hashKeySerializer, <any> hashValueSerializer)
default StringCommandOps stringCommandOps()
default SetCommandOps setCommands()
default SortedSetCommandOps sortedSetCommands()
default KeyCommandOps keyCommand()
default HyperLogLogCommandOps hyperLogLogCommand()
default HashCommandOps hashCommandOps()
default ListCommandOps listCommandOps()
default BaseRedisCommands getBaseRedisCommands()
default RedisCommands redisCommands()
default StatefulConnection getConnect()
default RedisAdvancedClusterCommands redisAdvancedClusterCommands()
default java.lang.String ping()
Copyright © Actionsoft Co., Ltd. All Rights Reserved.