public class StringRedisTemplate extends RedisTemplate<String,String>
template especially in terms
of serializers.
Note that this template exposes the RedisConnection used by the RedisCallback as a
StringRedisConnection.logger| Constructor and Description |
|---|
StringRedisTemplate()
Constructs a new
StringRedisTemplate instance. |
StringRedisTemplate(RedisConnectionFactory connectionFactory)
Constructs a new
StringRedisTemplate instance ready to be used. |
| Modifier and Type | Method and Description |
|---|---|
protected RedisConnection |
preProcessConnection(RedisConnection connection,
boolean existingConnection)
Processes the connection (before any settings are executed on it).
|
afterPropertiesSet, boundHashOps, boundListOps, boundSetOps, boundValueOps, boundZSetOps, convertAndSend, createRedisConnectionProxy, delete, delete, discard, dump, exec, exec, execRaw, execute, execute, execute, execute, execute, execute, executePipelined, executePipelined, executePipelined, executePipelined, expire, expireAt, getClientList, getDefaultSerializer, getExpire, getExpire, getHashKeySerializer, getHashValueSerializer, getKeySerializer, getStringSerializer, getValueSerializer, hasKey, isEnableDefaultSerializer, isExposeConnection, keys, killClient, move, multi, opsForHash, opsForHyperLogLog, opsForList, opsForSet, opsForValue, opsForZSet, persist, postProcessResult, randomKey, rename, renameIfAbsent, restore, setDefaultSerializer, setEnableDefaultSerializer, setEnableTransactionSupport, setExposeConnection, setHashKeySerializer, setHashValueSerializer, setKeySerializer, setScriptExecutor, setStringSerializer, setValueSerializer, slaveOf, slaveOfNoOne, sort, sort, sort, sort, sort, type, unwatch, watch, watchgetConnectionFactory, setConnectionFactorypublic StringRedisTemplate()
StringRedisTemplate instance. RedisAccessor.setConnectionFactory(RedisConnectionFactory)
and RedisTemplate.afterPropertiesSet() still need to be called.public StringRedisTemplate(RedisConnectionFactory connectionFactory)
StringRedisTemplate instance ready to be used.connectionFactory - connection factory for creating new connectionsprotected RedisConnection preProcessConnection(RedisConnection connection, boolean existingConnection)
RedisTemplatepreProcessConnection in class RedisTemplate<String,String>connection - redis connection