@Retention(value=RUNTIME) @Target(value=TYPE) @Import(value=RedissonHttpSessionConfiguration.class) @Configuration public @interface EnableRedissonHttpSession
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–2019 The Redisson Project. All rights reserved.