Interface DefaultedRedisClusterConnection
- All Superinterfaces:
AutoCloseable
,DefaultedRedisConnection
,RedisClusterCommands
,RedisClusterConnection
,RedisClusterServerCommands
,RedisCommands
,RedisConnection
,RedisConnectionCommands
,RedisGeoCommands
,RedisHashCommands
,RedisHyperLogLogCommands
,RedisKeyCommands
,RedisListCommands
,RedisPubSubCommands
,RedisScriptingCommands
,RedisServerCommands
,RedisSetCommands
,RedisStreamCommands
,RedisStringCommands
,RedisTxCommands
,RedisZSetCommands
- All Known Implementing Classes:
JedisClusterConnection
,LettuceClusterConnection
public interface DefaultedRedisClusterConnection
extends RedisClusterConnection, DefaultedRedisConnection
- Since:
- 2.0
- Author:
- Christoph Strobl, Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisClusterCommands
RedisClusterCommands.AddSlots
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisGeoCommands
RedisGeoCommands.DistanceUnit, RedisGeoCommands.GeoCommandArgs, RedisGeoCommands.GeoLocation<T>, RedisGeoCommands.GeoRadiusCommandArgs, RedisGeoCommands.GeoSearchCommandArgs, RedisGeoCommands.GeoSearchStoreCommandArgs
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisListCommands
RedisListCommands.Direction, RedisListCommands.Position
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisServerCommands
RedisServerCommands.MigrateOption, RedisServerCommands.ShutdownOption
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisStreamCommands
RedisStreamCommands.XAddOptions, RedisStreamCommands.XClaimOptions, RedisStreamCommands.XPendingOptions
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisStringCommands
RedisStringCommands.BitOperation, RedisStringCommands.SetOption
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisZSetCommands
RedisZSetCommands.Aggregate, RedisZSetCommands.Limit, RedisZSetCommands.Range, RedisZSetCommands.Tuple, RedisZSetCommands.Weights, RedisZSetCommands.ZAddArgs
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
bgReWriteAof
(RedisClusterNode node) Deprecated.default void
bgSave
(RedisClusterNode node) Deprecated.in favor ofRedisConnection.serverCommands()
.default Long
dbSize
(RedisClusterNode node) Deprecated.in favor ofRedisConnection.serverCommands()
.default <T> T
execute
(String command, byte[] key, Collection<byte[]> args) Execute the given command for thekey
provided potentially appending args.default void
flushAll
(RedisClusterNode node) Deprecated.in favor ofRedisConnection.serverCommands()
.default void
flushDb
(RedisClusterNode node) Deprecated.in favor ofRedisConnection.serverCommands()
.default List<RedisClientInfo>
Deprecated.in favor ofRedisConnection.serverCommands()
.default Properties
getConfig
(RedisClusterNode node, String pattern) Deprecated.in favor ofRedisConnection.serverCommands()
.default Properties
info
(RedisClusterNode node) Deprecated.in favor ofRedisConnection.serverCommands()
.default Properties
info
(RedisClusterNode node, String section) Deprecated.in favor ofRedisConnection.serverCommands()
.default Long
lastSave
(RedisClusterNode node) Deprecated.in favor ofRedisConnection.serverCommands()
.default void
Deprecated.in favor ofRedisConnection.serverCommands()
.default void
Deprecated.in favor ofRedisConnection.serverCommands()
.default void
save
(RedisClusterNode node) Deprecated.in favor ofRedisConnection.serverCommands()
.default void
setConfig
(RedisClusterNode node, String param, String value) Deprecated.in favor ofRedisConnection.serverCommands()
.default void
shutdown
(RedisClusterNode node) Deprecated.in favor ofRedisConnection.serverCommands()
.default Long
time
(RedisClusterNode node) Deprecated.in favor ofRedisConnection.serverCommands()
.default Long
time
(RedisClusterNode node, TimeUnit timeUnit) Deprecated.in favor ofRedisConnection.serverCommands()
.Methods inherited from interface org.springframework.data.redis.connection.DefaultedRedisConnection
append, bgReWriteAof, bgSave, bgWriteAof, bitCount, bitCount, bitField, bitOp, bitPos, bLMove, bLPop, bRPop, bRPopLPush, bZPopMax, bZPopMin, copy, dbSize, decr, decrBy, del, dump, encodingOf, eval, evalSha, evalSha, exists, exists, expire, expireAt, flushAll, flushDb, geoAdd, geoAdd, geoAdd, geoDist, geoDist, geoHash, geoPos, geoRadius, geoRadius, geoRadiusByMember, geoRadiusByMember, geoRemove, geoSearch, geoSearchStore, get, getBit, getClientList, getClientName, getConfig, getDel, getEx, getRange, getSet, hDel, hExists, hGet, hGetAll, hIncrBy, hIncrBy, hKeys, hLen, hMGet, hMSet, hRandField, hRandField, hRandFieldWithValues, hRandFieldWithValues, hScan, hSet, hSetNX, hStrLen, hVals, idletime, incr, incrBy, incrBy, info, info, keys, killClient, lastSave, lIndex, lInsert, lLen, lMove, lPop, lPop, lPos, lPush, lPushX, lRange, lRem, lSet, lTrim, mGet, migrate, migrate, move, mSet, mSetNX, persist, pExpire, pExpireAt, pfAdd, pfCount, pfMerge, pSetEx, pTtl, pTtl, randomKey, refcount, rename, renameNX, resetConfigStats, restore, rewriteConfig, rPop, rPop, rPopLPush, rPush, rPushX, sAdd, save, scan, sCard, scriptExists, scriptFlush, scriptKill, scriptLoad, sDiff, sDiffStore, set, set, setBit, setClientName, setConfig, setEx, setNX, setRange, shutdown, shutdown, sInter, sInterStore, sIsMember, slaveOf, slaveOfNoOne, sMembers, sMIsMember, sMove, sort, sort, sPop, sPop, sRandMember, sRandMember, sRem, sScan, strLen, sUnion, sUnionStore, time, time, touch, ttl, ttl, type, unlink, xAck, xAdd, xClaim, xClaimJustId, xDel, xGroupCreate, xGroupCreate, xGroupDelConsumer, xGroupDestroy, xInfo, xInfoConsumers, xInfoGroups, xLen, xPending, xPending, xRange, xRange, xRead, xRead, xReadGroup, xReadGroup, xRevRange, xRevRange, xTrim, xTrim, zAdd, zAdd, zCard, zCount, zCount, zDiff, zDiffStore, zDiffWithScores, zIncrBy, zInter, zInterStore, zInterStore, zInterStore, zInterWithScores, zInterWithScores, zInterWithScores, zLexCount, zMScore, zPopMax, zPopMax, zPopMin, zPopMin, zRandMember, zRandMember, zRandMemberWithScore, zRandMemberWithScore, zRange, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeWithScores, zRank, zRem, zRemRange, zRemRangeByLex, zRemRangeByScore, zRemRangeByScore, zRevRange, zRevRangeByLex, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeWithScores, zRevRank, zScan, zScore, zUnion, zUnionStore, zUnionStore, zUnionStore, zUnionWithScores, zUnionWithScores, zUnionWithScores
Methods inherited from interface org.springframework.data.redis.connection.RedisClusterCommands
clusterAddSlots, clusterAddSlots, clusterCountKeysInSlot, clusterDeleteSlots, clusterDeleteSlotsInRange, clusterForget, clusterGetClusterInfo, clusterGetKeysInSlot, clusterGetMasterSlaveMap, clusterGetNodeForKey, clusterGetNodeForSlot, clusterGetNodes, clusterGetSlaves, clusterGetSlotForKey, clusterMeet, clusterReplicate, clusterSetSlot
Methods inherited from interface org.springframework.data.redis.connection.RedisClusterConnection
keys, ping, randomKey, scan, serverCommands
Methods inherited from interface org.springframework.data.redis.connection.RedisCommands
execute
Methods inherited from interface org.springframework.data.redis.connection.RedisConnection
close, closePipeline, geoCommands, getNativeConnection, getSentinelConnection, hashCommands, hyperLogLogCommands, isClosed, isPipelined, isQueueing, keyCommands, listCommands, openPipeline, scriptingCommands, setCommands, streamCommands, stringCommands, zSetCommands
Methods inherited from interface org.springframework.data.redis.connection.RedisConnectionCommands
echo, ping, select
Methods inherited from interface org.springframework.data.redis.connection.RedisGeoCommands
geoAdd, geoRadiusByMember
Methods inherited from interface org.springframework.data.redis.connection.RedisKeyCommands
restore, scan
Methods inherited from interface org.springframework.data.redis.connection.RedisListCommands
lPos
Methods inherited from interface org.springframework.data.redis.connection.RedisPubSubCommands
getSubscription, isSubscribed, pSubscribe, publish, subscribe
Methods inherited from interface org.springframework.data.redis.connection.RedisStreamCommands
xAck, xAdd, xAdd, xClaim, xDel, xGroupDelConsumer, xPending, xPending, xPending, xPending, xPending
Methods inherited from interface org.springframework.data.redis.connection.RedisStringCommands
bitPos
Methods inherited from interface org.springframework.data.redis.connection.RedisTxCommands
discard, exec, multi, unwatch, watch
Methods inherited from interface org.springframework.data.redis.connection.RedisZSetCommands
zAdd, zAdd, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRevRangeByLex, zRevRangeByLex, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores
-
Method Details
-
bgReWriteAof
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
bgReWriteAof
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- See Also:
-
bgSave
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
bgSave
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- See Also:
-
lastSave
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
lastSave
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- Returns:
- See Also:
-
save
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
save
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- See Also:
-
dbSize
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
dbSize
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- Returns:
- See Also:
-
flushDb
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
flushDb
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- See Also:
-
flushAll
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
flushAll
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- See Also:
-
info
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
info
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- Returns:
- See Also:
-
info
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
info
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- Returns:
- See Also:
-
shutdown
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
shutdown
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- See Also:
-
getConfig
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
getConfig
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- Returns:
- See Also:
-
setConfig
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
setConfig
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- See Also:
-
resetConfigStats
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
resetConfigStats
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- See Also:
-
rewriteConfig
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
rewriteConfig
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- See Also:
-
time
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
time
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- Returns:
- See Also:
-
time
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
time
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.timeUnit
- must not be null.- Returns:
- See Also:
-
getClientList
Deprecated.in favor ofRedisConnection.serverCommands()
.- Specified by:
getClientList
in interfaceRedisClusterServerCommands
- Parameters:
node
- must not be null.- Returns:
- See Also:
-
execute
Description copied from interface:RedisClusterConnection
Execute the given command for thekey
provided potentially appending args.
This method, other thanRedisCommands.execute(String, byte[]...)
, dispatches the command to thekey
serving master node.// SET foo bar EX 10 NX execute("SET", "foo".getBytes(), asBinaryList("bar", "EX", 10, "NX"))
- Specified by:
execute
in interfaceRedisClusterConnection
- Parameters:
command
- must not be null.key
- must not be null.args
- must not be null.- Returns:
- command result as delivered by the underlying Redis driver. Can be null.
-
RedisConnection.serverCommands()
.