Java org.springframework.data.redis.core RedisTemplate fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.data.redis.core RedisTemplate fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.data.redis.core RedisTemplate.

The text is from its open source code.

Subclass

org.springframework.data.redis.core.RedisTemplate has subclasses.
Click this link to see all its subclasses.

Constructor

RedisTemplate()
Constructs a new RedisTemplate instance.

Method

voidafterPropertiesSet()
BoundValueOperationsboundValueOps(K key)
BoundZSetOperationsboundZSetOps(K key)
Booleandelete(K key)
Longdelete(Collection keys)
Listexec()
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.
RedisConnectionFactorygetConnectionFactory()
Returns the connectionFactory.
LonggetExpire(K key)
RedisSerializergetStringSerializer()
Returns the stringSerializer.
Setkeys(K pattern)
voidmulti()
ValueOperationsopsForValue()
voidsetBeanClassLoader(ClassLoader classLoader)
Set the ClassLoader to be used for the default JdkSerializationRedisSerializer in case no other RedisSerializer is explicitly set as the default one.
voidsetConnectionFactory(RedisConnectionFactory connectionFactory)
Sets the connection factory.
voidsetDefaultSerializer(RedisSerializer serializer)
Sets the default serializer to use for this template.
voidsetEnableTransactionSupport(boolean enableTransactionSupport)
If set to true RedisTemplate will use MULTI...EXEC|DISCARD to keep track of operations.
voidsetExposeConnection(boolean exposeConnection)
Sets whether to expose the Redis connection to RedisCallback code.
voidsetHashKeySerializer(RedisSerializer hashKeySerializer)
Sets the hash key (or field) serializer to be used by this template.
voidsetHashValueSerializer(RedisSerializer hashValueSerializer)
Sets the hash value serializer to be used by this template.
voidsetKeySerializer(RedisSerializer serializer)
Sets the key serializer to be used by this template.
voidsetValueSerializer(RedisSerializer serializer)
Sets the value serializer to be used by this template.