org.springframework.datastore.redis
Class RedisDatastore
java.lang.Object
org.springframework.datastore.core.AbstractDatastore
org.springframework.datastore.redis.RedisDatastore
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, Datastore, EntityInterceptorAware
public class RedisDatastore
- extends AbstractDatastore
- implements org.springframework.beans.factory.InitializingBean
A Datastore implementation for the Redis key/value datastore
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG_HOST
public static final String CONFIG_HOST
- See Also:
- Constant Field Values
CONFIG_TIMEOUT
public static final String CONFIG_TIMEOUT
- See Also:
- Constant Field Values
CONFIG_PORT
public static final String CONFIG_PORT
- See Also:
- Constant Field Values
CONFIG_PASSWORD
public static final String CONFIG_PASSWORD
- See Also:
- Constant Field Values
DEFAULT_HOST
public static final String DEFAULT_HOST
- See Also:
- Constant Field Values
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
RedisDatastore
public RedisDatastore()
RedisDatastore
public RedisDatastore(MappingContext mappingContext)
RedisDatastore
public RedisDatastore(MappingContext mappingContext,
Map<String,String> connectionDetails)
setBackgroundIndex
public void setBackgroundIndex(boolean backgroundIndex)
- Sets whether the Redis datastore should create indices in the background instead of on startup
- Parameters:
backgroundIndex
- True to create indices in the background
createSession
protected Session createSession(Map<String,String> connectionDetails)
- Description copied from class:
AbstractDatastore
- Creates the native session
- Specified by:
createSession
in class AbstractDatastore
- Parameters:
connectionDetails
- The session details
- Returns:
- The session object
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception