Example usage for org.springframework.data.redis.support.collections RedisCollectionFactoryBean setTemplate

List of usage examples for org.springframework.data.redis.support.collections RedisCollectionFactoryBean setTemplate

Introduction

In this page you can find the example usage for org.springframework.data.redis.support.collections RedisCollectionFactoryBean setTemplate.

Prototype

public void setTemplate(RedisTemplate<String, ?> template) 

Source Link

Document

Sets the template used by the resulting store.

Usage

From source file:org.springframework.integration.redis.outbound.RedisCollectionPopulatingMessageHandler.java

private RedisStore createStoreView(String key) {
    RedisCollectionFactoryBean fb = new RedisCollectionFactoryBean();
    fb.setKey(key);//from  ww w . j a  v  a2  s .co  m
    fb.setTemplate(this.redisTemplate);
    fb.setType(this.collectionType);
    fb.afterPropertiesSet();
    return fb.getObject();
}