@Configuration
public class RedissonHttpSessionConfiguration
extends org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
implements org.springframework.context.annotation.ImportAware
Redisson instance should be registered as bean in application context.
Constructor and Description |
---|
RedissonHttpSessionConfiguration() |
Modifier and Type | Method and Description |
---|---|
RedissonSessionRepository |
sessionRepository(RedissonClient redissonClient,
org.springframework.context.ApplicationEventPublisher eventPublisher) |
void |
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) |
void |
setKeyPrefix(String keyPrefix) |
void |
setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds) |
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionListeners, setHttpSessionStrategy, setServletContext, springSessionRepositoryFilter
@Bean public RedissonSessionRepository sessionRepository(RedissonClient redissonClient, org.springframework.context.ApplicationEventPublisher eventPublisher)
public void setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds)
public void setKeyPrefix(String keyPrefix)
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
setImportMetadata
in interface org.springframework.context.annotation.ImportAware
Copyright © 2014–2018 The Redisson Project. All rights reserved.