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

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

Introduction

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

Prototype

public void setKey(String key) 

Source Link

Document

Sets the key of the store.

Usage

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

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