FlushMode
@Deprecated public enum RedisFlushMode extends java.lang.Enum<RedisFlushMode>
Enum Constant and Description |
---|
IMMEDIATE
Deprecated.
Writes to Redis as soon as possible.
|
ON_SAVE
Deprecated.
Only writes to Redis when
SessionRepository.save(org.springframework.session.Session) is invoked. |
Modifier and Type | Method and Description |
---|---|
FlushMode |
getFlushMode()
Deprecated.
|
static RedisFlushMode |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static RedisFlushMode[] |
values()
Deprecated.
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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic FlushMode getFlushMode()