K
- Key type.V
- Value type.@Deprecated public interface RedisClusterAsyncConnection<K,V> extends RedisHashesAsyncConnection<K,V>, RedisKeysAsyncConnection<K,V>, RedisStringsAsyncConnection<K,V>, RedisListsAsyncConnection<K,V>, RedisSetsAsyncConnection<K,V>, RedisSortedSetsAsyncConnection<K,V>, RedisScriptingAsyncConnection<K,V>, RedisServerAsyncConnection<K,V>, RedisHLLAsyncConnection<K,V>, RedisGeoAsyncConnection<K,V>, BaseRedisAsyncConnection<K,V>
Modifier and Type | Method and Description |
---|---|
RedisFuture<String> |
asking()
Deprecated.
|
String |
auth(String password)
Deprecated.
Authenticate to the server.
|
RedisFuture<String> |
clusterAddSlots(int... slots)
Deprecated.
Adds slots to the cluster node.
|
RedisFuture<Long> |
clusterCountFailureReports(String nodeId)
Deprecated.
Returns the number of failure reports for the specified node.
|
RedisFuture<Long> |
clusterCountKeysInSlot(int slot)
Deprecated.
Returns the number of keys in the specified Redis Cluster hash
slot . |
RedisFuture<String> |
clusterDelSlots(int... slots)
Deprecated.
Removes slots from the cluster node.
|
RedisFuture<String> |
clusterFailover(boolean force)
Deprecated.
Failover a cluster node.
|
RedisFuture<String> |
clusterFlushslots()
Deprecated.
Delete all the slots associated with the specified node.
|
RedisFuture<String> |
clusterForget(String nodeId)
Deprecated.
Blacklist and remove the cluster node from the cluster.
|
RedisFuture<List<K>> |
clusterGetKeysInSlot(int slot,
int count)
Deprecated.
Retrieve the list of keys within the
slot . |
RedisFuture<String> |
clusterInfo()
Deprecated.
Get information and statistics about the cluster viewed by the current node.
|
RedisFuture<Long> |
clusterKeyslot(K key)
Deprecated.
Returns an integer identifying the hash slot the specified key hashes to.
|
RedisFuture<String> |
clusterMeet(String ip,
int port)
Deprecated.
Meet another cluster node to include the node into the cluster.
|
RedisFuture<String> |
clusterMyId()
Deprecated.
Obtain the nodeId for the currently connected node.
|
RedisFuture<String> |
clusterNodes()
Deprecated.
Obtain details about all cluster nodes.
|
RedisFuture<String> |
clusterReplicate(String nodeId)
Deprecated.
Turn this node into a slave of the node with the id
nodeId . |
RedisFuture<String> |
clusterReset(boolean hard)
Deprecated.
Reset a node performing a soft or hard reset:
All other nodes are forgotten
All the assigned / open slots are released
If the node is a slave, it turns into a master
Only for hard reset: a new Node ID is generated
Only for hard reset: currentEpoch and configEpoch are set to 0
The new configuration is saved and the cluster state updated
If the node was a slave, the whole data set is flushed away
|
RedisFuture<String> |
clusterSaveconfig()
Deprecated.
Forces a node to save the nodes.conf configuration on disk.
|
RedisFuture<String> |
clusterSetConfigEpoch(long configEpoch)
Deprecated.
This command sets a specific config epoch in a fresh node.
|
RedisFuture<String> |
clusterSetSlotImporting(int slot,
String nodeId)
Deprecated.
Flag a slot as IMPORTING (incoming) from the node specified in
nodeId . |
RedisFuture<String> |
clusterSetSlotMigrating(int slot,
String nodeId)
Deprecated.
Flag a slot as MIGRATING (outgoing) towards the node specified in
nodeId . |
RedisFuture<String> |
clusterSetSlotNode(int slot,
String nodeId)
Deprecated.
Assign a slot to a node.
|
RedisFuture<String> |
clusterSetSlotStable(int slot)
Deprecated.
Clears migrating / importing state from the slot.
|
RedisFuture<List<String>> |
clusterSlaves(String nodeId)
Deprecated.
List slaves for a certain node identified by its
nodeId . |
RedisFuture<List<Object>> |
clusterSlots()
Deprecated.
Get array of cluster slots to node mappings.
|
RedisFuture<String> |
readOnly()
Deprecated.
Tells a Redis cluster slave node that the client is ok reading possibly stale data and is not interested in running write
queries.
|
RedisFuture<String> |
readWrite()
Deprecated.
Resets readOnly flag.
|
void |
setTimeout(long timeout,
TimeUnit unit)
Deprecated.
Set the default timeout for operations.
|
hdel, hexists, hget, hgetall, hgetall, hincrby, hincrbyfloat, hkeys, hkeys, hlen, hmget, hmget, hmset, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hscan, hset, hsetnx, hstrlen, hvals, hvals
del, dump, exists, exists, expire, expireat, expireat, keys, keys, migrate, migrate, move, objectEncoding, objectIdletime, objectRefcount, persist, pexpire, pexpireat, pexpireat, pttl, randomkey, rename, renamenx, restore, scan, scan, scan, scan, scan, scan, scan, scan, sort, sort, sort, sort, sortStore, touch, ttl, type, unlink
append, bitcount, bitcount, bitfield, bitopAnd, bitopNot, bitopOr, bitopXor, bitpos, bitpos, decr, decrby, get, getbit, getrange, getset, incr, incrby, incrbyfloat, mget, mget, mset, msetnx, psetex, set, set, setbit, setex, setnx, setrange, strlen
blpop, brpop, brpoplpush, lindex, linsert, llen, lpop, lpush, lpushx, lpushx, lrange, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx, rpushx
sadd, scard, sdiff, sdiff, sdiffstore, sinter, sinter, sinterstore, sismember, smembers, smembers, smove, spop, spop, srandmember, srandmember, srandmember, srem, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sscan, sunion, sunion, sunionstore
zadd, zadd, zadd, zadd, zaddincr, zaddincr, zcard, zcount, zcount, zincrby, zinterstore, zinterstore, zlexcount, zrange, zrange, zrangebylex, zrangebylex, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscore, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangebyscoreWithScores, zrangeWithScores, zrangeWithScores, zrank, zrem, zremrangebylex, zremrangebyrank, zremrangebyscore, zremrangebyscore, zrevrange, zrevrange, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscore, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangebyscoreWithScores, zrevrangeWithScores, zrevrangeWithScores, zrevrank, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscan, zscore, zunionstore, zunionstore
eval, eval, evalsha, evalsha, scriptExists, scriptFlush, scriptKill, scriptLoad
bgrewriteaof, bgsave, clientGetname, clientKill, clientKill, clientList, clientPause, clientSetname, command, commandCount, commandInfo, commandInfo, configGet, configResetstat, configRewrite, configSet, dbsize, debugHtstats, debugObject, debugOom, debugSegfault, flushall, flushallAsync, flushdb, flushdbAsync, info, info, lastsave, save, shutdown, slaveof, slaveofNoOne, slowlogGet, slowlogGet, slowlogLen, slowlogReset, sync, time
pfadd, pfcount, pfmerge
geoadd, geoadd, geodist, geohash, geopos, georadius, georadius, georadius, georadiusbymember, georadiusbymember, georadiusbymember
close, digest, discard, dispatch, dispatch, echo, exec, flushCommands, isOpen, multi, ping, publish, pubsubChannels, pubsubChannels, pubsubNumpat, pubsubNumsub, quit, role, setAutoFlushCommands, unwatch, waitForReplication, watch
reset
void setTimeout(long timeout, TimeUnit unit)
timeout
- the timeout valueunit
- the unit of the timeout valueString auth(String password)
password
- the passwordRedisFuture<String> clusterMeet(String ip, int port)
ip
- IP address of the hostport
- port number.RedisFuture<String> clusterForget(String nodeId)
nodeId
- the node IdRedisFuture<String> clusterAddSlots(int... slots)
slots
- one or more slots from 0 to 16384RedisFuture<String> clusterDelSlots(int... slots)
slots
- one or more slots from 0 to 16384RedisFuture<String> clusterSetSlotNode(int slot, String nodeId)
nodeId
slot
- the slotnodeId
- the id of the node that will become the master for the slotRedisFuture<String> clusterSetSlotStable(int slot)
slot
- the slotRedisFuture<String> clusterSetSlotMigrating(int slot, String nodeId)
nodeId
. The slot must be handled by
the current node in order to be migrated.slot
- the slotnodeId
- the id of the node is targeted to become the master for the slotRedisFuture<String> clusterSetSlotImporting(int slot, String nodeId)
nodeId
.slot
- the slotnodeId
- the id of the node is the master of the slotRedisFuture<String> clusterInfo()
RedisFuture<String> clusterMyId()
RedisFuture<String> clusterNodes()
ClusterPartitionParser.parse(java.lang.String)
RedisFuture<List<String>> clusterSlaves(String nodeId)
nodeId
. Can be parsed using
ClusterPartitionParser.parse(java.lang.String)
nodeId
- node id of the master nodeclusterNodes()
but one line per slave.RedisFuture<List<K>> clusterGetKeysInSlot(int slot, int count)
slot
.slot
- the slotcount
- maximal number of keysRedisFuture<Long> clusterCountKeysInSlot(int slot)
slot
.slot
- the slotRedisFuture<Long> clusterCountFailureReports(String nodeId)
nodeId
- the node idRedisFuture<Long> clusterKeyslot(K key)
SlotHash.getSlot(byte[])
. If not, call Houston and report that we've got a problem.key
- the key.RedisFuture<String> clusterSaveconfig()
OK
or an error if the operation fails.RedisFuture<String> clusterSetConfigEpoch(long configEpoch)
configEpoch
- the config epochOK
or an error if the operation fails.RedisFuture<List<Object>> clusterSlots()
RedisFuture<String> asking()
RedisFuture<String> clusterReplicate(String nodeId)
nodeId
.nodeId
- master node idRedisFuture<String> clusterFailover(boolean force)
force
- do not coordinate with master if trueRedisFuture<String> clusterReset(boolean hard)
hard
- true for hard reset. Generates a new nodeId and currentEpoch/configEpoch are set to 0RedisFuture<String> clusterFlushslots()
RedisFuture<String> readOnly()
readOnly
in interface BaseRedisAsyncCommands<K,V>
RedisFuture<String> readWrite()
readWrite
in interface BaseRedisAsyncCommands<K,V>
Copyright © 2018 lettuce.io. All rights reserved.