List of usage examples for org.springframework.data.redis.core RedisTemplate RedisTemplate
public RedisTemplate()
RedisTemplate
instance. From source file:org.springframework.xd.samples.ProductCategoryEnricherTest.java
@Before public void setUp() { JedisConnectionFactory redisConnectionFactory = new JedisConnectionFactory(); redisConnectionFactory.afterPropertiesSet(); redisTemplate = new RedisTemplate<>(); redisTemplate.setConnectionFactory(redisConnectionFactory); redisTemplate.setDefaultSerializer(new StringRedisSerializer()); redisTemplate.afterPropertiesSet();//from ww w . j a va 2 s. c o m productCategoryEnricher = new ProductCategoryEnricher(redisTemplate); }