クラス StringRedisTemplate
java.lang.ObjectSE
org.springframework.data.redis.core.RedisAccessor
org.springframework.data.redis.core.RedisTemplate<StringSE,StringSE>
org.springframework.data.redis.core.StringRedisTemplate
- 実装されたすべてのインターフェース:
Aware
、BeanClassLoaderAware
、InitializingBean
、RedisOperations<StringSE,
StringSE>
RedisTemplate の文字列に焦点を当てた拡張。Redis に対するほとんどの操作は文字列ベースであるため、このクラスは、特にシリアライザーに関して、より一般的な
template
の構成を最小限に抑える専用クラスを提供します。 このテンプレートは、RedisCallback
によって使用される RedisConnection
を StringRedisConnection
として公開することに注意してください。
- 作成者:
- Costin Leau, Mark Paluch
フィールドのサマリー
クラス org.springframework.data.redis.core.RedisAccessor から継承されたフィールド
logger
コンストラクターの概要
コンストラクターコンストラクター説明新しいStringRedisTemplate
インスタンスを構築します。StringRedisTemplate
(RedisConnectionFactory connectionFactory) すぐに使用できる新しいStringRedisTemplate
インスタンスを構築します。メソッドのサマリー
修飾子と型メソッド説明protected RedisConnection
preProcessConnection
(RedisConnection connection, boolean existingConnection) 接続を処理します(設定が実行される前に)。クラス org.springframework.data.redis.core.RedisTemplate から継承されたメソッド
afterPropertiesSet, boundGeoOps, boundHashOps, boundListOps, boundSetOps, boundStreamOps, boundValueOps, boundZSetOps, convertAndSend, copy, countExistingKeys, createRedisConnectionProxy, delete, delete, discard, dump, exec, exec, execRaw, execute, execute, execute, execute, execute, execute, executePipelined, executePipelined, executePipelined, executePipelined, executeWithStickyConnection, expire, expireAt, getClientList, getDefaultSerializer, getExpire, getExpire, getHashKeySerializer, getHashValueSerializer, getKeySerializer, getStringSerializer, getValueSerializer, hasKey, isEnableDefaultSerializer, isExposeConnection, keys, killClient, move, multi, opsForCluster, opsForGeo, opsForHash, opsForHyperLogLog, opsForList, opsForSet, opsForStream, opsForStream, opsForValue, opsForZSet, persist, postProcessResult, randomKey, rename, renameIfAbsent, replicaOf, replicaOfNoOne, restore, scan, setBeanClassLoader, setDefaultSerializer, setEnableDefaultSerializer, setEnableTransactionSupport, setExposeConnection, setHashKeySerializer, setHashValueSerializer, setKeySerializer, setScriptExecutor, setStringSerializer, setValueSerializer, sort, sort, sort, sort, sort, type, unlink, unlink, unwatch, watch, watch
クラス org.springframework.data.redis.core.RedisAccessor から継承されたメソッド
getConnectionFactory, getRequiredConnectionFactory, setConnectionFactory
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.data.redis.core.RedisOperations から継承されたメソッド
expire, expireAt, restore
コンストラクターの詳細
StringRedisTemplate
public StringRedisTemplate()新しいStringRedisTemplate
インスタンスを構築します。RedisAccessor.setConnectionFactory(RedisConnectionFactory)
とRedisTemplate.afterPropertiesSet()
を呼び出す必要があります。StringRedisTemplate
すぐに使用できる新しいStringRedisTemplate
インスタンスを構築します。- パラメーター:
connectionFactory
- 新しい接続を作成するための接続ファクトリ
メソッドの詳細
preProcessConnection
protected RedisConnection preProcessConnection(RedisConnection connection, boolean existingConnection) クラスからコピーされた説明:RedisTemplate
接続を処理します(設定が実行される前に)。デフォルトの実装では、接続がそのまま返されます。- オーバーライド:
- クラス
RedisTemplate<StringSE,
のStringSE> preProcessConnection
- パラメーター:
connection
- redis 接続