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

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

Introduction

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

Prototype

public void setType(CollectionType type) 

Source Link

Document

Sets the store type.

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  a  2s  .com
    fb.setTemplate(this.redisTemplate);
    fb.setType(this.collectionType);
    fb.afterPropertiesSet();
    return fb.getObject();
}