Class RedisSessionStore
java.lang.Object
io.vertx.rxjava3.ext.web.sstore.SessionStore
io.vertx.rxjava3.ext.web.sstore.redis.RedisSessionStore
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
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.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<RedisSessionStore> static final longstatic final intDefault length for a session id. -
Constructor Summary
ConstructorsConstructorDescriptionRedisSessionStore(RedisSessionStore delegate) RedisSessionStore(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisSessionStoreCreates a RedisSessionStore with the given retry TO.static RedisSessionStoreCreates a RedisSessionStore with the default retry TO.booleaninthashCode()static RedisSessionStoretoString()Methods inherited from class SessionStore
clear, close, create, create, createSession, createSession, delete, get, init, newInstance, put, retryTimeout, rxClear, rxDelete, rxGet, rxPut, rxSize, size
-
Field Details
-
__TYPE_ARG
-
DEFAULT_SESSIONID_LENGTH
public static final int DEFAULT_SESSIONID_LENGTHDefault length for a session id. More info: https://www.owasp.org/index.php/Session_Management_Cheat_Sheet- See Also:
-
DEFAULT_RETRY_TIMEOUT_MS
public static final long DEFAULT_RETRY_TIMEOUT_MS- See Also:
-
-
Constructor Details
-
RedisSessionStore
-
RedisSessionStore
-
-
Method Details
-
toString
- Overrides:
toStringin classSessionStore
-
equals
- Overrides:
equalsin classSessionStore
-
hashCode
public int hashCode()- Overrides:
hashCodein classSessionStore
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classSessionStore
-
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
-
newInstance
-