インターフェースの使用
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 のメソッド修飾子と型メソッド説明longBatchStrategy.cleanCache(RedisConnection connection, StringSE name, byte[] pattern) 指定されたパターンに従ってすべてのキーを削除します。org.springframework.data.redis.connection 内の RedisConnection 使用
org.springframework.data.redis.connection 内の RedisConnection サブインターフェース修飾子と型インターフェース説明interfaceRedisClusterConnectionを使用すると、クラスター内の専用ノードにコマンドを送信できます。interfaceバイト配列の代わりにStringSE を受け入れて返す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 使用
修飾子と型クラス説明classJedisClusterの上にRedisClusterConnection実装。
可能な場合はネイティブJedisClusterAPI を使用し、必要に応じてJedisを使用して直接ノード通信にフォールバックします。class上にRedisConnection実装 Jedis のライブラリ。org.springframework.data.redis.connection.lettuce 内の RedisConnection 使用
org.springframework.data.redis.core 内の RedisConnection 使用
org.springframework.data.redis.core 内の RedisConnection サブインターフェース修飾子と型メソッド説明static RedisConnectionRedisConnectionUtils.bindConnection(RedisConnectionFactory factory) 指定されたRedisConnectionFactoryからRedisConnectionを取得し、クロージャスコープで使用される現在のスレッドに接続をバインドします(まだバインドされていない場合)。static RedisConnectionRedisConnectionUtils.bindConnection(RedisConnectionFactory factory, boolean transactionSupport) 指定されたRedisConnectionFactoryからRedisConnectionを取得し、クロージャスコープで使用される現在のスレッドに接続をバインドします(まだバインドされていない場合)。protected RedisConnectionRedisTemplate.createRedisConnectionProxy(RedisConnection connection) static RedisConnectionRedisConnectionUtils.doGetConnection(RedisConnectionFactory factory, boolean allowCreate, boolean bind, boolean transactionSupport) 実際には、指定されたRedisConnectionFactoryからRedisConnectionを取得します。static RedisConnectionRedisConnectionUtils.getConnection(RedisConnectionFactory factory) 指定されたRedisConnectionFactoryからRedisConnectionを取得します。static RedisConnectionRedisConnectionUtils.getConnection(RedisConnectionFactory factory, boolean transactionSupport) 指定されたRedisConnectionFactoryからRedisConnectionを取得します。RedisConnectionUtils.RedisConnectionProxy.getTargetConnection()このプロキシのターゲットRedisConnectionを返します。protected RedisConnectionRedisTemplate.preProcessConnection(RedisConnection connection, boolean existingConnection) 接続を処理します(設定が実行される前に)。protected RedisConnectionStringRedisTemplate.preProcessConnection(RedisConnection connection, boolean existingConnection) 型 RedisConnection のパラメーターを持つ org.springframework.data.redis.core のメソッド修飾子と型メソッド説明protected RedisConnectionRedisTemplate.createRedisConnectionProxy(RedisConnection connection) RedisCallback.doInRedis(RedisConnection connection) アクティブなRedisConnectionを持つRedisTemplateによって呼び出されるメソッド。static booleanRedisConnectionUtils.isConnectionTransactional(RedisConnection connection, RedisConnectionFactory connectionFactory) 指定された Redis 接続がトランザクションであるかどうか、つまり Spring のトランザクション機能によって現在のスレッドにバインドされているかどうかを返します。protected <T> TRedisTemplate.postProcessResult(T result, RedisConnection conn, boolean existingConnection) protected RedisConnectionRedisTemplate.preProcessConnection(RedisConnection connection, boolean existingConnection) 接続を処理します(設定が実行される前に)。protected RedisConnectionStringRedisTemplate.preProcessConnection(RedisConnection connection, boolean existingConnection) static voidRedisConnectionUtils.releaseConnection(RedisConnection conn, RedisConnectionFactory factory) 外部で管理されていない場合(つまり、トランザクションにバインドされていない場合)、指定されたファクトリを介して作成された指定されたRedisConnectionを閉じます。org.springframework.data.redis.core.script 内の RedisConnection 使用
型 RedisConnection のパラメーターを持つ org.springframework.data.redis.core.script のメソッド修飾子と型メソッド説明protected <T> TDefaultScriptExecutor.eval(RedisConnection connection, RedisScript<T> script, ReturnType returnType, int numKeys, byte[][] keysAndArgs, RedisSerializer<T> resultSerializer)