Example usage for Java org.springframework.data.redis.core RedisTemplate fields, constructors, methods, implement or subclass
The text is from its open source code.
RedisTemplate() Constructs a new RedisTemplate instance. |
void | afterPropertiesSet() |
BoundValueOperations | boundValueOps(K key) |
BoundZSetOperations | boundZSetOps(K key) |
Boolean | delete(K key) |
Long | delete(Collection |
List | exec() Execute a transaction, using the default RedisSerializer s to deserialize any results that are byte[]s or Collections or Maps of byte[]s or Tuples. |
RedisConnectionFactory | getConnectionFactory() Returns the connectionFactory. |
Long | getExpire(K key) |
RedisSerializer | getStringSerializer() Returns the stringSerializer. |
Set | keys(K pattern) |
void | multi() |
ValueOperations | opsForValue() |
void | setBeanClassLoader(ClassLoader classLoader) Set the ClassLoader to be used for the default JdkSerializationRedisSerializer in case no other RedisSerializer is explicitly set as the default one. |
void | setConnectionFactory(RedisConnectionFactory connectionFactory) Sets the connection factory. |
void | setDefaultSerializer(RedisSerializer> serializer) Sets the default serializer to use for this template. |
void | setEnableTransactionSupport(boolean enableTransactionSupport) If set to true RedisTemplate will use MULTI...EXEC|DISCARD to keep track of operations. |
void | setExposeConnection(boolean exposeConnection) Sets whether to expose the Redis connection to RedisCallback code. |
void | setHashKeySerializer(RedisSerializer> hashKeySerializer) Sets the hash key (or field) serializer to be used by this template. |
void | setHashValueSerializer(RedisSerializer> hashValueSerializer) Sets the hash value serializer to be used by this template. |
void | setKeySerializer(RedisSerializer> serializer) Sets the key serializer to be used by this template. |
void | setValueSerializer(RedisSerializer> serializer) Sets the value serializer to be used by this template. |