|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.data.redis.core.RedisAccessor
org.springframework.data.redis.core.RedisTemplate<String,String>
org.springframework.data.redis.core.StringRedisTemplate
public class StringRedisTemplate
String-focused extension of RedisTemplate. Since most operations against Redis are String based, this class provides
a dedicated class that minimizes configuration of its more generic template
especially in terms
of serializers.
RedisConnection
used by the RedisCallback
as a
StringRedisConnection
.
Field Summary |
---|
Fields inherited from class org.springframework.data.redis.core.RedisAccessor |
---|
logger |
Constructor Summary | |
---|---|
StringRedisTemplate()
Constructs a new StringRedisTemplate instance. |
|
StringRedisTemplate(RedisConnectionFactory connectionFactory)
Constructs a new StringRedisTemplate instance ready to be used. |
Method Summary | |
---|---|
protected RedisConnection |
preProcessConnection(RedisConnection connection,
boolean existingConnection)
Processes the connection (before any settings are executed on it). |
Methods inherited from class org.springframework.data.redis.core.RedisAccessor |
---|
getConnectionFactory, setConnectionFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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 connectionsMethod Detail |
---|
protected RedisConnection preProcessConnection(RedisConnection connection, boolean existingConnection)
RedisTemplate
preProcessConnection
in class RedisTemplate<String,String>
connection
- redis connection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |