Interface RedisSessionStore
- All Superinterfaces:
SessionStore
A SessionStore that uses a Redis to store the sessions and associated data.
This assumes that the redis logical database (i.e. select) is only used
to store the sessions to make size query reliable.
- Author:
- Rémy Noël
-
Field Summary
FieldsFields inherited from interface SessionStore
DEFAULT_SESSIONID_LENGTH -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic RedisSessionStoreCreates a RedisSessionStore with the given retry TO.static RedisSessionStoreCreates a RedisSessionStore with the default retry TO.Methods inherited from interface SessionStore
clear, close, createSession, createSession, delete, get, init, put, retryTimeout, size
-
Field Details
-
DEFAULT_RETRY_TIMEOUT_MS
static final long DEFAULT_RETRY_TIMEOUT_MS- See Also:
-
-
Method Details
-
create
Creates a RedisSessionStore with the default retry TO.- Parameters:
vertx- a Vert.x instanceredis- A Redis client- Returns:
- the store
-
create
Creates a RedisSessionStore with the given retry TO.- Parameters:
vertx- a Vert.x instanceretryTimeoutMs- The time between two consecutive triesredis- The given options to establish the connection- Returns:
- the store
-