クラス LettuceClusterConnection
java.lang.ObjectSE
org.springframework.data.redis.connection.AbstractRedisConnection
org.springframework.data.redis.connection.lettuce.LettuceConnection
org.springframework.data.redis.connection.lettuce.LettuceClusterConnection
- 実装済みのインターフェース一覧:
AutoCloseableSE, DefaultedRedisClusterConnection, DefaultedRedisConnection, RedisClusterCommands, RedisClusterCommandsProvider, RedisClusterConnection, RedisClusterServerCommands, RedisCommands, RedisCommandsProvider, RedisConnection, RedisConnectionCommands, RedisGeoCommands, RedisHashCommands, RedisHyperLogLogCommands, RedisKeyCommands, RedisListCommands, RedisPubSubCommands, RedisScriptingCommands, RedisServerCommands, RedisSetCommands, RedisStreamCommands, RedisStringCommands, RedisTxCommands, RedisZSetCommands
public class LettuceClusterConnection
extends LettuceConnection
implements RedisClusterConnection, DefaultedRedisClusterConnection
上に
RedisClusterConnection 実装 Lettuce Redis クライアント。LettuceClusterConnection によって使用される基になる Lettuce RedisClient および StatefulRedisConnection インスタンスはスレッドセーフですが、このクラス自体はスレッドセーフではありません。Redis コマンドやその他の操作を実行するときに、LettuceClusterConnection のインスタンスを複数のスレッド間で共有しないでください。アプリケーションで最適なパフォーマンスが必要な場合は、基盤となる Lettuce クライアントライブラリ (ドライバー) によって提供される低レベルの API に直接アクセスすることをお勧めします。このようなスレッドセーフ保証が可能です。LettuceConnection.getNativeConnection() を呼び出して、必要に応じてネイティブリソースを使用するだけです。
- 導入:
- 1.7
- 作成者:
- Christoph Strobl, Mark Paluch, John Blum
ネストされたクラスの概要
ネストされたクラス修飾子と型クラス説明protected static interfaceClusterCommandExecutor.ClusterCommandCallbackの Lettuce 固有の実装。protected static interfaceClusterCommandExecutor.MultiKeyClusterCommandCallbackの Lettuce 固有の実装。クラス LettuceConnection から継承されたネストクラス / インターフェース
LettuceConnection.PipeliningFlushPolicy, LettuceConnection.PipeliningFlushStateインターフェース RedisClusterCommands から継承されたネストクラス / インターフェース
RedisClusterCommands.AddSlotsインターフェース RedisGeoCommands から継承されたネストクラス / インターフェース
RedisGeoCommands.DistanceUnit, RedisGeoCommands.GeoCommandArgs, RedisGeoCommands.GeoLocation<T>, RedisGeoCommands.GeoRadiusCommandArgs, RedisGeoCommands.GeoSearchCommandArgs, RedisGeoCommands.GeoSearchStoreCommandArgsインターフェース RedisHashCommands から継承されたネストクラス / インターフェース
RedisHashCommands.HashFieldSetOptionインターフェース RedisListCommands から継承されたネストクラス / インターフェース
RedisListCommands.Direction, RedisListCommands.Positionインターフェース RedisServerCommands から継承されたネストクラス / インターフェース
RedisServerCommands.FlushOption, RedisServerCommands.MigrateOption, RedisServerCommands.ShutdownOptionインターフェース RedisStreamCommands から継承されたネストクラス / インターフェース
RedisStreamCommands.XAddOptions, RedisStreamCommands.XClaimOptions, RedisStreamCommands.XPendingOptionsインターフェース RedisStringCommands から継承されたネストクラス / インターフェース
RedisStringCommands.BitOperation, RedisStringCommands.SetOptionインターフェース RedisZSetCommands から継承されたネストクラス / インターフェース
RedisZSetCommands.Limit, RedisZSetCommands.Range, RedisZSetCommands.ZAddArgsコンストラクター概要
コンストラクター修飾子コンストラクター説明protectedLettuceClusterConnection(@Nullable io.lettuce.core.cluster.api.StatefulRedisClusterConnection<byte[], byte[]> sharedConnection, LettuceConnectionProvider connectionProvider, ClusterTopologyProvider clusterTopologyProvider, ClusterCommandExecutor executor, DurationSE timeout) 指定されたClusterCommandExecutorを介して、クラスター全体でコマンドを実行する共有StatefulRedisClusterConnectionおよびLettuceConnectionProviderを指定して、新しいLettuceClusterConnectionを作成します。LettuceClusterConnection(io.lettuce.core.cluster.RedisClusterClient clusterClient) デフォルトのtimeoutを備えたRedisClusterClientと、閉じると破棄される新しいClusterCommandExecutorを使用して、新しいLettuceClusterConnectionを作成します。LettuceClusterConnection(io.lettuce.core.cluster.RedisClusterClient clusterClient, ClusterCommandExecutor executor) 指定されたClusterCommandExecutorを介してクラスター全体でコマンドを実行するRedisClusterClientを使用して、デフォルトのtimeoutで新しいLettuceClusterConnectionを作成します。LettuceClusterConnection(io.lettuce.core.cluster.RedisClusterClient clusterClient, ClusterCommandExecutor executor, DurationSE timeout) 指定されたClusterCommandExecutorを介してクラスター全体でコマンドを実行するRedisClusterClientを使用して、指定されたコマンドtimeoutで新しいLettuceClusterConnectionを作成します。LettuceClusterConnection(LettuceConnectionProvider connectionProvider) 指定されたClusterCommandExecutorを介してクラスター全体でコマンドを実行するLettuceConnectionProviderを使用して、新しいLettuceClusterConnectionを作成します。LettuceClusterConnection(LettuceConnectionProvider connectionProvider, ClusterCommandExecutor executor) 指定されたClusterCommandExecutorを介してクラスター全体でコマンドを実行するLettuceConnectionProviderを使用して、新しいLettuceClusterConnectionを作成します。LettuceClusterConnection(LettuceConnectionProvider connectionProvider, ClusterCommandExecutor executor, DurationSE timeout) 指定されたClusterCommandExecutorを介してクラスター全体でコマンドを実行するLettuceConnectionProviderを使用して、新しいLettuceClusterConnectionを作成します。方法の概要
修飾子と型メソッド説明voidclose()接続を閉じるか終了します。voidclusterAddSlots(RedisClusterNode node, int... slots) 指定されたRedisClusterNodeにスロットを割り当てます。voidclusterAddSlots(RedisClusterNode node, RedisClusterNode.SlotRange range) 指定されたRedisClusterNodeにRedisClusterNode.SlotRange.getSlotsArray()を割り当てます。RedisGeoCommandsを取得します。clusterCountKeysInSlot(int slot) 1 つのスロットに割り当てられたキーの数を数えます。voidclusterDeleteSlots(RedisClusterNode node, int... slots) RedisClusterNodeからスロットを取り外します。void指定されたRedisClusterNodeからRedisClusterNode.SlotRange.getSlotsArray()を削除します。void指定されたノードをクラスターから削除します。@Nullable ClusterInfoクラスター情報を取得します。ListSE<byte[]> clusterGetKeysInSlot(int slot, IntegerSE count) スロットによって提供されるキーを取得します。マスターとそれに接続されたレプリカに関する情報を取得します。@Nullable RedisClusterNodeclusterGetNodeForKey(byte[] key) 与えられたキーを提供するRedisClusterNodeを見つけます。@Nullable RedisClusterNodeclusterGetNodeForSlot(int slot) 指定されたスロットにサービスを提供しているRedisClusterNodeを見つけます。ID、ホスト、ポート、スロットなどのクラスターノード情報を取得します。clusterGetReplicas(RedisClusterNode master) 特定のマスターノードの接続されたレプリカに関する情報を取得します。clusterGetSlotForKey(byte[] key) 特定のkeyのスロットを見つけます。voidclusterMeet(RedisClusterNode node) 指定されたノードをクラスターに追加します。voidclusterReplicate(RedisClusterNode master, RedisClusterNode replica) 指定されたマスターにレプリカを割り当てます。voidclusterSetSlot(RedisClusterNode node, int slot, RedisClusterCommands.AddSlots mode) RedisGeoCommandsを取得します。RedisHashCommandsを取得します。RedisHyperLogLogCommandsを取得します。RedisKeyCommandsを取得します。@Nullable SetSE<byte[]> keys(RedisClusterNode node, byte[] pattern) RedisListCommandsを取得します。voidmulti()トランザクションブロックの開始をマークします。ping()接続のテスト。@Nullable StringSEping(RedisClusterNode node) byte @Nullable[]randomKey(RedisClusterNode node) Cursor<byte[]> scan(RedisClusterNode node, ScanOptions options) Cursorを使用して、キーを繰り返し処理します。voidselect(int dbIndex) 正のdbIndexが指定された DB を選択します。RedisServerCommandsを取得します。RedisSetCommandsを取得します。RedisStringCommandsを取得します。voidunwatch()以前のすべてのRedisTxCommands.watch(byte[]...)キーをフラッシュします。voidwatch(byte[]... keys) RedisTxCommands.multi()で開始されたトランザクション中の変更について、指定されたkeysを監視します。RedisZSetCommandsを取得します。クラス LettuceConnection から継承されたメソッド
closePipeline, commands, convertLettuceAccessException, discard, doCreateSubscription, doGetAsyncDedicatedConnection, echo, exec, execute, execute, getAsyncDedicatedConnection, getConnection, getNativeConnection, getSentinelConnection, getSubscription, isActive, isClosed, isPipelined, isQueueing, isSubscribed, openPipeline, pSubscribe, publish, scriptingCommands, setConvertPipelineAndTxResults, setPipeliningFlushPolicy, streamCommands, subscribe, switchToPubSubクラス AbstractRedisConnection から継承されたメソッド
getSentinelConnection, hasRedisSentinelConfigured, setSentinelConfigurationクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース DefaultedRedisClusterConnection から継承されたメソッド
bgReWriteAof, bgSave, dbSize, flushAll, flushAll, flushDb, flushDb, getClientList, getConfig, info, info, lastSave, resetConfigStats, rewriteConfig, save, setConfig, shutdown, time, timeインターフェース 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, hGetDel, hGetEx, hIncrBy, hIncrBy, hKeys, hLen, hMGet, hMSet, hPersist, hpExpire, hpExpire, hpExpireAt, hpExpireAt, hpTtl, hRandField, hRandField, hRandFieldWithValues, hRandFieldWithValues, hScan, hSet, hSetEx, 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, sInterCard, 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インターフェース RedisClusterConnection から継承されたメソッド
executeインターフェース RedisCommands から継承されたメソッド
executeインターフェース RedisCommandsProvider から継承されたメソッド
commands, scriptingCommands, streamCommandsインターフェース RedisConnection から継承されたメソッド
closePipeline, getNativeConnection, getSentinelConnection, isClosed, isPipelined, isQueueing, openPipelineインターフェース RedisConnectionCommands から継承されたメソッド
echoインターフェース RedisGeoCommands から継承されたメソッド
geoAdd, geoRadiusByMemberインターフェース RedisHashCommands から継承されたメソッド
applyHashFieldExpiration, hExpire, hpExpireインターフェース RedisKeyCommands から継承されたメソッド
applyExpiration, expire, expireAt, pExpire, pExpireAt, restore, scanインターフェース RedisListCommands から継承されたメソッド
lPosインターフェース RedisPubSubCommands から継承されたメソッド
getSubscription, isSubscribed, pSubscribe, publish, subscribeインターフェース RedisStreamCommands から継承されたメソッド
xAck, xAdd, xAdd, xClaim, xDel, xGroupDelConsumer, xPending, xPending, xPending, xPending, xPending, xPending, xPending, xPendingインターフェース RedisStringCommands から継承されたメソッド
bitPosインターフェース RedisTxCommands から継承されたメソッド
discard, execインターフェース RedisZSetCommands から継承されたメソッド
zAdd, zAdd, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeStoreByLex, zRangeStoreByScore, zRangeStoreRevByLex, zRangeStoreRevByScore, zRevRangeByLex, zRevRangeByLex, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores
コンストラクターの詳細
LettuceClusterConnection
public LettuceClusterConnection(io.lettuce.core.cluster.RedisClusterClient clusterClient) デフォルトのtimeoutを備えたRedisClusterClientと、閉じると破棄される新しいClusterCommandExecutorを使用して、新しいLettuceClusterConnectionを作成します。- パラメーター:
clusterClient- null であってはなりません。
LettuceClusterConnection
public LettuceClusterConnection(io.lettuce.core.cluster.RedisClusterClient clusterClient, ClusterCommandExecutor executor) 指定されたClusterCommandExecutorを介してクラスター全体でコマンドを実行するRedisClusterClientを使用して、デフォルトのtimeoutで新しいLettuceClusterConnectionを作成します。- パラメーター:
clusterClient- null であってはなりません。executor- null であってはなりません。
LettuceClusterConnection
public LettuceClusterConnection(io.lettuce.core.cluster.RedisClusterClient clusterClient, ClusterCommandExecutor executor, DurationSE timeout) 指定されたClusterCommandExecutorを介してクラスター全体でコマンドを実行するRedisClusterClientを使用して、指定されたコマンドtimeoutで新しいLettuceClusterConnectionを作成します。- パラメーター:
clusterClient- null であってはなりません。executor- null であってはなりません。timeout- null であってはなりません。- 導入:
- 2.0
LettuceClusterConnection
指定されたClusterCommandExecutorを介してクラスター全体でコマンドを実行するLettuceConnectionProviderを使用して、新しいLettuceClusterConnectionを作成します。- パラメーター:
connectionProvider- null であってはなりません。- 導入:
- 2.0
LettuceClusterConnection
public LettuceClusterConnection(LettuceConnectionProvider connectionProvider, ClusterCommandExecutor executor) 指定されたClusterCommandExecutorを介してクラスター全体でコマンドを実行するLettuceConnectionProviderを使用して、新しいLettuceClusterConnectionを作成します。- パラメーター:
connectionProvider- null であってはなりません。executor- null であってはなりません。- 導入:
- 2.0
LettuceClusterConnection
public LettuceClusterConnection(LettuceConnectionProvider connectionProvider, ClusterCommandExecutor executor, DurationSE timeout) 指定されたClusterCommandExecutorを介してクラスター全体でコマンドを実行するLettuceConnectionProviderを使用して、新しいLettuceClusterConnectionを作成します。- パラメーター:
connectionProvider- null であってはなりません。executor- null であってはなりません。timeout- null であってはなりません。- 導入:
- 2.0
LettuceClusterConnection
protected LettuceClusterConnection(@Nullable io.lettuce.core.cluster.api.StatefulRedisClusterConnection<byte[], byte[]> sharedConnection, LettuceConnectionProvider connectionProvider, ClusterTopologyProvider clusterTopologyProvider, ClusterCommandExecutor executor, DurationSE timeout) 指定されたClusterCommandExecutorを介して、クラスター全体でコマンドを実行する共有StatefulRedisClusterConnectionおよびLettuceConnectionProviderを指定して、新しいLettuceClusterConnectionを作成します。- パラメーター:
sharedConnection- 共有接続が使用されていない場合は null になる可能性があります。connectionProvider- null であってはなりません。clusterTopologyProvider- null であってはなりません。executor- null であってはなりません。timeout- null であってはなりません。- 導入:
- 2.1
メソッドの詳細
clusterCommands
インターフェースからコピーされた説明:RedisClusterCommandsProviderRedisGeoCommandsを取得します。- 次で指定:
- インターフェース
RedisClusterCommandsProviderのclusterCommands - 戻り値:
- 決して null にはなりません。
geoCommands
インターフェースからコピーされた説明:RedisCommandsProviderRedisGeoCommandsを取得します。- 次で指定:
- インターフェース
RedisCommandsProviderのgeoCommands - オーバーライド:
- クラス
LettuceConnectionのgeoCommands - 戻り値:
- 決して null にはなりません。
hashCommands
インターフェースからコピーされた説明:RedisCommandsProviderRedisHashCommandsを取得します。- 次で指定:
- インターフェース
RedisCommandsProviderのhashCommands - オーバーライド:
- クラス
LettuceConnectionのhashCommands - 戻り値:
- 決して null にはなりません。
hyperLogLogCommands
インターフェースからコピーされた説明:RedisCommandsProviderRedisHyperLogLogCommandsを取得します。- 次で指定:
- インターフェース
RedisCommandsProviderのhyperLogLogCommands - オーバーライド:
- クラス
LettuceConnectionのhyperLogLogCommands - 戻り値:
- 決して null にはなりません。
keyCommands
インターフェースからコピーされた説明:RedisCommandsProviderRedisKeyCommandsを取得します。- 次で指定:
- インターフェース
RedisCommandsProviderのkeyCommands - オーバーライド:
- クラス
LettuceConnectionのkeyCommands - 戻り値:
- 決して null にはなりません。
listCommands
インターフェースからコピーされた説明:RedisCommandsProviderRedisListCommandsを取得します。- 次で指定:
- インターフェース
RedisCommandsProviderのlistCommands - オーバーライド:
- クラス
LettuceConnectionのlistCommands - 戻り値:
- 決して null にはなりません。
setCommands
インターフェースからコピーされた説明:RedisCommandsProviderRedisSetCommandsを取得します。- 次で指定:
- インターフェース
RedisCommandsProviderのsetCommands - オーバーライド:
- クラス
LettuceConnectionのsetCommands - 戻り値:
- 決して null にはなりません。
serverCommands
インターフェースからコピーされた説明:RedisCommandsProviderRedisServerCommandsを取得します。- 次で指定:
- インターフェース
RedisClusterCommandsProviderのserverCommands - 次で指定:
- インターフェース
RedisCommandsProviderのserverCommands - オーバーライド:
- クラス
LettuceConnectionのserverCommands - 戻り値:
- 決して null にはなりません。
stringCommands
インターフェースからコピーされた説明:RedisCommandsProviderRedisStringCommandsを取得します。- 次で指定:
- インターフェース
RedisCommandsProviderのstringCommands - オーバーライド:
- クラス
LettuceConnectionのstringCommands - 戻り値:
- 決して null にはなりません。
zSetCommands
インターフェースからコピーされた説明:RedisCommandsProviderRedisZSetCommandsを取得します。- 次で指定:
- インターフェース
RedisCommandsProviderのzSetCommands - オーバーライド:
- クラス
LettuceConnectionのzSetCommands - 戻り値:
- 決して null にはなりません。
ping
インターフェースからコピーされた説明:RedisConnectionCommands接続のテスト。- 次で指定:
- インターフェース
RedisConnectionCommandsのping - オーバーライド:
- クラス
LettuceConnectionのping - 戻り値:
- サーバーレスポンスメッセージ - 通常は PONG。パイプライン / トランザクションで使用される場合は null。
- 関連事項:
ping
- 次で指定:
- インターフェース
RedisClusterConnectionのping - パラメーター:
node- null であってはなりません。- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 関連事項:
clusterGetNodes
インターフェースからコピーされた説明:RedisClusterCommandsID、ホスト、ポート、スロットなどのクラスターノード情報を取得します。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterGetNodes - 戻り値:
- 決して null にはなりません。
- 関連事項:
clusterGetReplicas
インターフェースからコピーされた説明:RedisClusterCommands特定のマスターノードの接続されたレプリカに関する情報を取得します。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterGetReplicas - パラメーター:
master- null であってはなりません。- 戻り値:
- 決して null にはなりません。
- 関連事項:
clusterGetMasterReplicaMap
インターフェースからコピーされた説明:RedisClusterCommandsマスターとそれに接続されたレプリカに関する情報を取得します。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterGetMasterReplicaMap - 戻り値:
- 決して null にはなりません。
- 関連事項:
clusterGetSlotForKey
インターフェースからコピーされた説明:RedisClusterCommands特定のkeyのスロットを見つけます。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterGetSlotForKey - パラメーター:
key- null であってはなりません。- 戻り値:
- 関連事項:
clusterGetNodeForSlot
インターフェースからコピーされた説明:RedisClusterCommands指定されたスロットにサービスを提供しているRedisClusterNodeを見つけます。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterGetNodeForSlot - パラメーター:
slot-- 戻り値:
clusterGetNodeForKey
インターフェースからコピーされた説明:RedisClusterCommands与えられたキーを提供するRedisClusterNodeを見つけます。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterGetNodeForKey - パラメーター:
key- null であってはなりません。- 戻り値:
clusterGetClusterInfo
インターフェースからコピーされた説明:RedisClusterCommandsクラスター情報を取得します。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterGetClusterInfo - 戻り値:
- 関連事項:
clusterAddSlots
インターフェースからコピーされた説明:RedisClusterCommands指定されたRedisClusterNodeにスロットを割り当てます。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterAddSlots - パラメーター:
node- null であってはなりません。slots-- 関連事項:
clusterAddSlots
インターフェースからコピーされた説明:RedisClusterCommands指定されたRedisClusterNodeにRedisClusterNode.SlotRange.getSlotsArray()を割り当てます。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterAddSlots - パラメーター:
node- null であってはなりません。range- null であってはなりません。- 関連事項:
clusterCountKeysInSlot
インターフェースからコピーされた説明:RedisClusterCommands1 つのスロットに割り当てられたキーの数を数えます。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterCountKeysInSlot - パラメーター:
slot-- 戻り値:
- 関連事項:
clusterDeleteSlots
インターフェースからコピーされた説明:RedisClusterCommandsRedisClusterNodeからスロットを取り外します。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterDeleteSlots - パラメーター:
node- null であってはなりません。slots-- 関連事項:
clusterDeleteSlotsInRange
インターフェースからコピーされた説明:RedisClusterCommands指定されたRedisClusterNodeからRedisClusterNode.SlotRange.getSlotsArray()を削除します。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterDeleteSlotsInRange - パラメーター:
node- null であってはなりません。range- null であってはなりません。- 関連事項:
clusterForget
インターフェースからコピーされた説明:RedisClusterCommands指定されたノードをクラスターから削除します。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterForget - パラメーター:
node- null であってはなりません。- 関連事項:
clusterMeet
インターフェースからコピーされた説明:RedisClusterCommands指定されたノードをクラスターに追加します。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterMeet - パラメーター:
node-hostおよびRedisNode.getPort()を含む必要があり、null であってはなりません。- 関連事項:
clusterSetSlot
- 次で指定:
- インターフェース
RedisClusterCommandsのclusterSetSlot - パラメーター:
node- null であってはなりません。slot-mode- null であってはなりません。- 関連事項:
clusterGetKeysInSlot
インターフェースからコピーされた説明:RedisClusterCommandsスロットによって提供されるキーを取得します。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterGetKeysInSlot - パラメーター:
slot-count- null であってはなりません。- 戻り値:
- 関連事項:
clusterReplicate
インターフェースからコピーされた説明:RedisClusterCommands指定されたマスターにレプリカを割り当てます。- 次で指定:
- インターフェース
RedisClusterCommandsのclusterReplicate - パラメーター:
master- null であってはなりません。replica- null であってはなりません。- 関連事項:
keys
- 次で指定:
- インターフェース
RedisClusterConnectionのkeys - パラメーター:
node- null であってはなりません。pattern- null であってはなりません。- 戻り値:
- パイプライン / トランザクションで使用される場合は null。
- 関連事項:
scan
インターフェースからコピーされた説明:RedisClusterConnectionCursorを使用して、キーを繰り返し処理します。- 次で指定:
- インターフェース
RedisClusterConnectionのscan - パラメーター:
node- null であってはなりません。options- null であってはなりません。- 戻り値:
- 決して null にはなりません。
- 関連事項:
randomKey
- 次で指定:
- インターフェース
RedisClusterConnectionのrandomKey - パラメーター:
node- null であってはなりません。- 戻り値:
- ノードにキーが保存されていない場合、またはパイプライン / トランザクションで使用されている場合は null。
- 関連事項:
select
public void select(int dbIndex) インターフェースからコピーされた説明:RedisConnectionCommands正のdbIndexが指定された DB を選択します。- 次で指定:
- インターフェース
RedisConnectionCommandsのselect - オーバーライド:
- クラス
LettuceConnectionのselect - パラメーター:
dbIndex- データベースインデックス。- 関連事項:
watch
public void watch(byte[]... keys) インターフェースからコピーされた説明:RedisTxCommandsRedisTxCommands.multi()で開始されたトランザクション中の変更について、指定されたkeysを監視します。- 次で指定:
- インターフェース
RedisTxCommandsのwatch - オーバーライド:
- クラス
LettuceConnectionのwatch - パラメーター:
keys- null であってはなりません。- 関連事項:
unwatch
public void unwatch()インターフェースからコピーされた説明:RedisTxCommands以前のすべてのRedisTxCommands.watch(byte[]...)キーをフラッシュします。- 次で指定:
- インターフェース
RedisTxCommandsのunwatch - オーバーライド:
- クラス
LettuceConnectionのunwatch - 関連事項:
multi
public void multi()インターフェースからコピーされた説明:RedisTxCommandsトランザクションブロックの開始をマークします。
コマンドはキューに入れられ、RedisTxCommands.exec()を呼び出すことによって実行するか、RedisTxCommands.discard()を使用してロールバックすることができます。- 次で指定:
- インターフェース
RedisTxCommandsのmulti - オーバーライド:
- クラス
LettuceConnectionのmulti - 関連事項:
getClusterCommandExecutor
close
インターフェースからコピーされた説明:RedisConnection接続を閉じるか終了します。- 次で指定:
- インターフェース
AutoCloseableSEのclose - 次で指定:
- インターフェース
RedisConnectionのclose - オーバーライド:
- クラス
LettuceConnectionのclose - 例外:
DataAccessException-RedisConnectionを閉じることができなかった場合。