use of com.jeanchampemont.wtfdyum.utils.LongRedisSerializer in project WTFDYUM by jchampemont.
the class RedisConfiguration method longRedisTemplate.
@Bean
public RedisTemplate<String, Long> longRedisTemplate() {
final RedisTemplate<String, Long> template = new RedisTemplate<>();
template.setConnectionFactory(redisConnectionFactory());
template.setKeySerializer(new StringRedisSerializer());
template.setHashKeySerializer(new LongRedisSerializer());
template.setValueSerializer(new LongRedisSerializer());
return template;
}
Aggregations