List of usage examples for org.springframework.data.redis.core RedisTemplate afterPropertiesSet
@Override public void afterPropertiesSet()
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; }