public enum RedisFlushMode extends Enum<RedisFlushMode>
| Enum Constant and Description | 
|---|
IMMEDIATE
Writes to Redis as soon as possible. 
 | 
ON_SAVE
Only writes to Redis when
  
SessionRepository.save(org.springframework.session.Session) is
 invoked. | 
| Modifier and Type | Method and Description | 
|---|---|
static RedisFlushMode | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static RedisFlushMode[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final RedisFlushMode ON_SAVE
SessionRepository.save(org.springframework.session.Session) is
 invoked. In a web environment this is typically done as soon as the HTTP
 response is committed.public static final RedisFlushMode IMMEDIATE
SessionRepository.createSession() will write the session to
 Redis. Another example is that setting an attribute on the session will
 also write to Redis immediately.public static RedisFlushMode[] values()
for (RedisFlushMode c : RedisFlushMode.values()) System.out.println(c);
public static RedisFlushMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null