インターフェース RedisClusterConnection
- すべてのスーパーインターフェース:
AutoCloseableSE、DefaultedRedisClusterConnection、DefaultedRedisConnection、RedisClusterCommands、RedisClusterCommandsProvider、RedisClusterServerCommands、RedisCommands、RedisCommandsProvider、RedisConnection、RedisConnectionCommands、RedisGeoCommands、RedisHashCommands、RedisHyperLogLogCommands、RedisKeyCommands、RedisListCommands、RedisPubSubCommands、RedisScriptingCommands、RedisServerCommands、RedisSetCommands、RedisStreamCommands、RedisStringCommands、RedisTxCommands、RedisZSetCommands
- すべての既知の実装クラス:
JedisClusterConnection,LettuceClusterConnection
public interface RedisClusterConnection
extends RedisConnection, DefaultedRedisClusterConnection, RedisClusterCommandsProvider
RedisClusterConnection を使用すると、クラスター内の専用ノードにコマンドを送信できます。RedisClusterNode は、RedisClusterCommands.clusterGetNodes() から取得することも、host と RedisNode.getPort() または node Id を使用して構築することもできます。Redis connections とは異なり、おそらくその基礎となるネイティブ接続はスレッドセーフではないため、複数のスレッド間で共有すべきではありません。
- 導入:
- 1.7
- 作成者:
- Christoph Strobl, Mark Paluch
ネストされたクラスの要約
インターフェース org.springframework.data.redis.connection.RedisClusterCommands から継承されたネストクラス / インターフェース
RedisClusterCommands.AddSlotsインターフェース org.springframework.data.redis.connection.RedisGeoCommands から継承されたネストクラス / インターフェース
RedisGeoCommands.DistanceUnit, RedisGeoCommands.GeoCommandArgs, RedisGeoCommands.GeoLocation<T>, RedisGeoCommands.GeoRadiusCommandArgs, RedisGeoCommands.GeoSearchCommandArgs, RedisGeoCommands.GeoSearchStoreCommandArgsインターフェース org.springframework.data.redis.connection.RedisListCommands から継承されたネストクラス / インターフェース
RedisListCommands.Direction, RedisListCommands.Positionインターフェース org.springframework.data.redis.connection.RedisServerCommands から継承されたネストクラス / インターフェース
RedisServerCommands.FlushOption, RedisServerCommands.MigrateOption, RedisServerCommands.ShutdownOptionインターフェース org.springframework.data.redis.connection.RedisStreamCommands から継承されたネストクラス / インターフェース
RedisStreamCommands.XAddOptions, RedisStreamCommands.XClaimOptions, RedisStreamCommands.XPendingOptionsインターフェース org.springframework.data.redis.connection.RedisStringCommands から継承されたネストクラス / インターフェース
RedisStringCommands.BitOperation, RedisStringCommands.SetOptionインターフェース org.springframework.data.redis.connection.RedisZSetCommands から継承されたネストクラス / インターフェース
RedisZSetCommands.Limit, RedisZSetCommands.Range, RedisZSetCommands.ZAddArgsメソッドのサマリー
修飾子と型メソッド説明default <T> Texecute(StringSE command, byte[] key, CollectionSE<byte[]> args) 追加される可能性のある引数が提供されたkeyに対して、指定されたコマンドを実行します。SetSE<byte[]>keys(RedisClusterNode node, byte[] pattern) ping(RedisClusterNode node) byte[]randomKey(RedisClusterNode node) Cursor<byte[]>scan(RedisClusterNode node, ScanOptions options) Cursorを使用して、キーを繰り返し処理します。インターフェース org.springframework.data.redis.connection.DefaultedRedisClusterConnection から継承されたメソッド
bgReWriteAof, bgSave, dbSize, flushAll, flushAll, flushDb, flushDb, getClientList, getConfig, info, info, lastSave, resetConfigStats, rewriteConfig, save, setConfig, shutdown, time, timeインターフェース org.springframework.data.redis.connection.DefaultedRedisConnection から継承されたメソッド
append, applyHashFieldExpiration, bgReWriteAof, bgSave, bitCount, bitCount, bitField, bitOp, bitPos, bLMove, bLPop, bRPop, bRPopLPush, bZPopMax, bZPopMin, copy, dbSize, decr, decrBy, del, dump, encodingOf, eval, evalSha, evalSha, exists, exists, expire, expire, expireAt, expireAt, flushAll, flushAll, flushDb, 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, hExpire, hExpire, hExpireAt, hExpireAt, hGet, hGetAll, hIncrBy, hIncrBy, hKeys, hLen, hMGet, hMSet, hPersist, hpExpire, hpExpire, hpExpireAt, hpExpireAt, hpTtl, hRandField, hRandField, hRandFieldWithValues, hRandFieldWithValues, hScan, hSet, hSetNX, hStrLen, hTtl, hTtl, 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, pExpire, pExpireAt, pExpireAt, pfAdd, pfCount, pfMerge, pSetEx, pTtl, pTtl, randomKey, refcount, rename, renameNX, replicaOf, replicaOfNoOne, resetConfigStats, restore, rewriteConfig, rPop, rPop, rPopLPush, rPush, rPushX, sAdd, save, scan, sCard, scriptExists, scriptFlush, scriptKill, scriptLoad, sDiff, sDiffStore, set, set, setBit, setClientName, setConfig, setEx, setGet, setNX, setRange, shutdown, shutdown, sInter, sInterStore, sIsMember, 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, zRangeStoreByLex, zRangeStoreByScore, zRangeStoreRevByLex, zRangeStoreRevByScore, zRangeWithScores, zRank, zRem, zRemRange, zRemRangeByLex, zRemRangeByScore, zRemRangeByScore, zRevRange, zRevRangeByLex, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeWithScores, zRevRank, zScan, zScore, zUnion, zUnionStore, zUnionStore, zUnionStore, zUnionWithScores, zUnionWithScores, zUnionWithScoresインターフェース org.springframework.data.redis.connection.RedisClusterCommands から継承されたメソッド
clusterAddSlots, clusterAddSlots, clusterCountKeysInSlot, clusterDeleteSlots, clusterDeleteSlotsInRange, clusterForget, clusterGetClusterInfo, clusterGetKeysInSlot, clusterGetMasterReplicaMap, clusterGetNodeForKey, clusterGetNodeForSlot, clusterGetNodes, clusterGetReplicas, clusterGetSlotForKey, clusterMeet, clusterReplicate, clusterSetSlotインターフェース org.springframework.data.redis.connection.RedisClusterCommandsProvider から継承されたメソッド
clusterCommands, serverCommandsインターフェース org.springframework.data.redis.connection.RedisCommands から継承されたメソッド
executeインターフェース org.springframework.data.redis.connection.RedisCommandsProvider から継承されたメソッド
commands, geoCommands, hashCommands, hyperLogLogCommands, keyCommands, listCommands, scriptingCommands, setCommands, streamCommands, stringCommands, zSetCommandsインターフェース org.springframework.data.redis.connection.RedisConnection から継承されたメソッド
close, closePipeline, getNativeConnection, getSentinelConnection, isClosed, isPipelined, isQueueing, openPipelineインターフェース org.springframework.data.redis.connection.RedisConnectionCommands から継承されたメソッド
echo, ping, selectインターフェース org.springframework.data.redis.connection.RedisGeoCommands から継承されたメソッド
geoAdd, geoRadiusByMemberインターフェース org.springframework.data.redis.connection.RedisHashCommands から継承されたメソッド
applyHashFieldExpiration, hExpire, hpExpireインターフェース org.springframework.data.redis.connection.RedisKeyCommands から継承されたメソッド
applyExpiration, expire, expireAt, pExpire, pExpireAt, restore, scanインターフェース org.springframework.data.redis.connection.RedisListCommands から継承されたメソッド
lPosインターフェース org.springframework.data.redis.connection.RedisPubSubCommands から継承されたメソッド
getSubscription, isSubscribed, pSubscribe, publish, subscribeインターフェース org.springframework.data.redis.connection.RedisStreamCommands から継承されたメソッド
xAck, xAdd, xAdd, xClaim, xDel, xGroupDelConsumer, xPending, xPending, xPending, xPending, xPendingインターフェース org.springframework.data.redis.connection.RedisStringCommands から継承されたメソッド
bitPosインターフェース org.springframework.data.redis.connection.RedisTxCommands から継承されたメソッド
discard, exec, multi, unwatch, watchインターフェース org.springframework.data.redis.connection.RedisZSetCommands から継承されたメソッド
zAdd, zAdd, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeStoreByLex, zRangeStoreByScore, zRangeStoreRevByLex, zRangeStoreRevByScore, zRevRangeByLex, zRevRangeByLex, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores
メソッドの詳細
ping
- パラメーター:
node- null であってはなりません。- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 関連事項:
keys
- パラメーター:
node- null であってはなりません。pattern- null であってはなりません。- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 関連事項:
scan
Cursorを使用して、キーを繰り返し処理します。- パラメーター:
node- null であってはなりません。options- null であってはなりません。- 戻り値:
- 決して null にはなりません。
- 導入:
- 2.1
- 関連事項:
randomKey
- パラメーター:
node- null であってはなりません。- 戻り値:
- ノードにキーが保存されていない場合、またはパイプライン / トランザクションで使用されている場合は null。
- 関連事項:
execute
与えられたkeyに対して指定されたコマンドを実行し、引数を追加する可能性があります。
RedisCommands.execute(String, byte[]...)以外のこのメソッドは、コマンドをkeyサービングマスターノードにディスパッチします。// SET foo bar EX 10 NX execute("SET", "foo".getBytes(), asBinaryList("bar", "EX", 10, "NX"))- パラメーター:
command- null であってはなりません。key- null であってはなりません。args- null であってはなりません。- 戻り値:
- 基礎となる Redis ドライバーによって提供されるコマンド結果。null にすることができます。
- 導入:
- 2.1