|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.redis.support.collections.RedisCollectionFactoryBean
public class RedisCollectionFactoryBean
Factory bean that facilitates creation of Redis-based collections. Supports list, set, zset (or sortedSet), map (or hash) and properties. Will use the key type if it exists or to create a dedicated collection (Properties vs Map). Otherwise uses the provided type (default is list).
Nested Class Summary | |
---|---|
static class |
RedisCollectionFactoryBean.CollectionType
Collection types supported by this factory. |
Constructor Summary | |
---|---|
RedisCollectionFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
RedisStore |
getObject()
|
Class<?> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setBeanName(String name)
|
void |
setKey(String key)
Sets the key of the store. |
void |
setTemplate(RedisTemplate<String,?> template)
Sets the template used by the resulting store. |
void |
setType(RedisCollectionFactoryBean.CollectionType type)
Sets the store type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RedisCollectionFactoryBean()
Method Detail |
---|
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
public RedisStore getObject()
getObject
in interface FactoryBean<RedisStore>
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<RedisStore>
public boolean isSingleton()
isSingleton
in interface FactoryBean<RedisStore>
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
public void setType(RedisCollectionFactoryBean.CollectionType type)
type
- The type to set.public void setTemplate(RedisTemplate<String,?> template)
template
- The template to set.public void setKey(String key)
key
- The key to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |