@Retention(value=RUNTIME) @Target(value=TYPE) @Import(value=RedissonHttpSessionConfiguration.class) @Configuration public @interface EnableRedissonHttpSession
SessionRepositoryFilter
as a bean named "springSessionRepositoryFilter".
Redisson instance should be registered as bean in application context. Usage example:
@Configuration
EnableRedissonHttpSession
public class RedissonHttpSessionConfig {
@Bean
public RedissonClient redisson() {
return Redisson.create();
}
}
Modifier and Type | Optional Element and Description |
---|---|
String |
keyPrefix |
int |
maxInactiveIntervalInSeconds |
public abstract int maxInactiveIntervalInSeconds
public abstract String keyPrefix
Copyright © 2014–2020 Redisson. All rights reserved.