Example usage for org.springframework.data.redis.core RedisTemplate afterPropertiesSet

List of usage examples for org.springframework.data.redis.core RedisTemplate afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.data.redis.core RedisTemplate afterPropertiesSet.

Prototype

@Override
    public void afterPropertiesSet() 

Source Link

Usage

From source file:org.springframework.session.data.redis.RedisOperationsSessionRepository.java

private static RedisTemplate<Object, Object> createDefaultTemplate(RedisConnectionFactory connectionFactory) {
    Assert.notNull(connectionFactory, "connectionFactory cannot be null");
    RedisTemplate<Object, Object> template = new RedisTemplate<Object, Object>();
    template.setKeySerializer(new StringRedisSerializer());
    template.setHashKeySerializer(new StringRedisSerializer());
    template.setConnectionFactory(connectionFactory);
    template.afterPropertiesSet();
    return template;
}