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

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

Introduction

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

Prototype

public RedisStore getObject() 

Source Link

Usage

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

private RedisStore createStoreView(String key) {
    RedisCollectionFactoryBean fb = new RedisCollectionFactoryBean();
    fb.setKey(key);/*from w w w .j  ava2 s  .  c  o m*/
    fb.setTemplate(this.redisTemplate);
    fb.setType(this.collectionType);
    fb.afterPropertiesSet();
    return fb.getObject();
}