インターフェースの使用
org.springframework.data.redis.connection.RedisConnection
RedisConnection を使用するパッケージ
パッケージ
説明
Spring キャッシュ抽象化のための Redis 実装を提供するパッケージ。
さまざまな Redis ' ドライバー '/libraries と対話するための低レベルの抽象化を提供する接続パッケージ。
Jedis ライブラリの接続パッケージ。
Lettuce の接続パッケージ Redis クライアント。
Redis を Spring の概念と統合するためのコアパッケージ。
Lua スクリプト実行の抽象化。
org.springframework.data.redis.cache 内の RedisConnection 使用
型 RedisConnection のパラメーターを持つ org.springframework.data.redis.cache のメソッド修飾子と型メソッド説明long
BatchStrategy.cleanCache
(RedisConnection connection, StringSE name, byte[] pattern) 指定されたパターンに従ってすべてのキーを削除します。org.springframework.data.redis.connection 内の RedisConnection 使用
org.springframework.data.redis.connection 内の RedisConnection サブインターフェース修飾子と型インターフェース説明interface
RedisClusterConnection
を使用すると、クラスター内の専用ノードにコマンドを送信できます。interface
バイト配列の代わりにString
SE を受け入れて返すRedisConnection
の便利な拡張。RedisConnection を実装している org.springframework.data.redis.connection のクラス修飾子と型メソッド説明RedisConnectionFactory.getConnection()
Redis との対話に適したconnection
を返します。DecoratedRedisConnection.getDelegate()
基になるRedisConnection
を取得します。DefaultStringRedisConnection.getDelegate()
型 RedisConnection のパラメーターを持つ org.springframework.data.redis.connection のコンストラクター修飾子コンストラクター説明DefaultStringRedisConnection
(RedisConnection connection) 新しいDefaultStringRedisConnection
インスタンスを構築します。DefaultStringRedisConnection
(RedisConnection connection, RedisSerializer<StringSE> serializer) 新しいDefaultStringRedisConnection
インスタンスを構築します。org.springframework.data.redis.connection.jedis 内の RedisConnection 使用
修飾子と型クラス説明class
JedisCluster
の上にRedisClusterConnection
実装。
可能な場合はネイティブJedisCluster
API を使用し、必要に応じてJedis
を使用して直接ノード通信にフォールバックします。class
上にRedisConnection
実装 Jedis のライブラリ。org.springframework.data.redis.connection.lettuce 内の RedisConnection 使用
org.springframework.data.redis.core 内の RedisConnection 使用
org.springframework.data.redis.core 内の RedisConnection サブインターフェース修飾子と型メソッド説明static RedisConnection
RedisConnectionUtils.bindConnection
(RedisConnectionFactory factory) 指定されたRedisConnectionFactory
からRedisConnection
を取得し、クロージャスコープで使用される現在のスレッドに接続をバインドします(まだバインドされていない場合)。static RedisConnection
RedisConnectionUtils.bindConnection
(RedisConnectionFactory factory, boolean transactionSupport) 指定されたRedisConnectionFactory
からRedisConnection
を取得し、クロージャスコープで使用される現在のスレッドに接続をバインドします(まだバインドされていない場合)。protected RedisConnection
RedisTemplate.createRedisConnectionProxy
(RedisConnection connection) static RedisConnection
RedisConnectionUtils.doGetConnection
(RedisConnectionFactory factory, boolean allowCreate, boolean bind, boolean transactionSupport) 実際には、指定されたRedisConnectionFactory
からRedisConnection
を取得します。static RedisConnection
RedisConnectionUtils.getConnection
(RedisConnectionFactory factory) 指定されたRedisConnectionFactory
からRedisConnection
を取得します。static RedisConnection
RedisConnectionUtils.getConnection
(RedisConnectionFactory factory, boolean transactionSupport) 指定されたRedisConnectionFactory
からRedisConnection
を取得します。RedisConnectionUtils.RedisConnectionProxy.getTargetConnection()
このプロキシのターゲットRedisConnection
を返します。protected RedisConnection
RedisTemplate.preProcessConnection
(RedisConnection connection, boolean existingConnection) 接続を処理します(設定が実行される前に)。protected RedisConnection
StringRedisTemplate.preProcessConnection
(RedisConnection connection, boolean existingConnection) 型 RedisConnection のパラメーターを持つ org.springframework.data.redis.core のメソッド修飾子と型メソッド説明protected RedisConnection
RedisTemplate.createRedisConnectionProxy
(RedisConnection connection) RedisCallback.doInRedis
(RedisConnection connection) アクティブなRedisConnection
を持つRedisTemplate
によって呼び出されるメソッド。static boolean
RedisConnectionUtils.isConnectionTransactional
(RedisConnection connection, RedisConnectionFactory connectionFactory) 指定された Redis 接続がトランザクションであるかどうか、つまり Spring のトランザクション機能によって現在のスレッドにバインドされているかどうかを返します。protected <T> T
RedisTemplate.postProcessResult
(T result, RedisConnection conn, boolean existingConnection) protected RedisConnection
RedisTemplate.preProcessConnection
(RedisConnection connection, boolean existingConnection) 接続を処理します(設定が実行される前に)。protected RedisConnection
StringRedisTemplate.preProcessConnection
(RedisConnection connection, boolean existingConnection) static void
RedisConnectionUtils.releaseConnection
(RedisConnection conn, RedisConnectionFactory factory) 外部で管理されていない場合(つまり、トランザクションにバインドされていない場合)、指定されたファクトリを介して作成された指定されたRedisConnection
を閉じます。org.springframework.data.redis.core.script 内の RedisConnection 使用
型 RedisConnection のパラメーターを持つ org.springframework.data.redis.core.script のメソッド修飾子と型メソッド説明protected <T> T
DefaultScriptExecutor.eval
(RedisConnection connection, RedisScript<T> script, ReturnType returnType, int numKeys, byte[][] keysAndArgs, RedisSerializer<T> resultSerializer)