Class RedisOperationsSessionRepository
java.lang.Object
org.springframework.session.data.redis.RedisIndexedSessionRepository
org.springframework.session.data.redis.RedisOperationsSessionRepository
- All Implemented Interfaces:
org.springframework.data.redis.connection.MessageListener
,FindByIndexNameSessionRepository<org.springframework.session.data.redis.RedisIndexedSessionRepository.RedisSession>
,SessionRepository<org.springframework.session.data.redis.RedisIndexedSessionRepository.RedisSession>
Deprecated.
This
SessionRepository
implementation is kept in order to support migration to
RedisIndexedSessionRepository
in a backwards compatible manner.- Since:
- 1.0
-
Field Summary
Fields inherited from class org.springframework.session.data.redis.RedisIndexedSessionRepository
DEFAULT_DATABASE, DEFAULT_NAMESPACE
Fields inherited from interface org.springframework.session.FindByIndexNameSessionRepository
PRINCIPAL_NAME_INDEX_NAME
-
Constructor Summary
ConstructorDescriptionRedisOperationsSessionRepository
(org.springframework.data.redis.core.RedisOperations<Object, Object> sessionRedisOperations) Deprecated.Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setRedisFlushMode
(RedisFlushMode redisFlushMode) Deprecated.since 2.2.0 in favor ofRedisIndexedSessionRepository.setFlushMode(FlushMode)
Methods inherited from class org.springframework.session.data.redis.RedisIndexedSessionRepository
cleanupExpiredSessions, createSession, deleteById, findById, findByIndexNameAndIndexValue, getSessionCreatedChannelPrefix, getSessionDeletedChannel, getSessionExpiredChannel, getSessionRedisOperations, onMessage, save, setApplicationEventPublisher, setDatabase, setDefaultMaxInactiveInterval, setDefaultSerializer, setFlushMode, setIndexResolver, setRedisKeyNamespace, setSaveMode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.session.FindByIndexNameSessionRepository
findByPrincipalName
-
Constructor Details
-
RedisOperationsSessionRepository
public RedisOperationsSessionRepository(org.springframework.data.redis.core.RedisOperations<Object, Object> sessionRedisOperations) Deprecated.Creates a new instance. For an example, refer to the class level javadoc.- Parameters:
sessionRedisOperations
- theRedisOperations
to use for managing the sessions. Cannot be null.- See Also:
-
-
Method Details
-
setRedisFlushMode
Deprecated.since 2.2.0 in favor ofRedisIndexedSessionRepository.setFlushMode(FlushMode)
Sets the redis flush mode. Default flush mode isRedisFlushMode.ON_SAVE
.- Parameters:
redisFlushMode
- the new redis flush mode
-
RedisIndexedSessionRepository