A session store which is only available on a single node.
Can be used when sticky sessions are being used.
package |
Default |
---|
__construct()
clear( $arg0) : void
callable
close() : void
create( $arg0, $arg1 = null, $arg2 = null) : \io\vertx\jphp\ext\web\sstore\LocalSessionStore
param $vertx [Vertx] the Vert.x instance create($vertx)
Create a session store
param $vertx [Vertx] the Vert.x instance param $sessionMapName [string] name for map used to store sessions create($vertx, $sessionMapName)
Create a session store
param $vertx [Vertx] the Vert.x instance param $sessionMapName [string] name for map used to store sessions param $reaperInterval [integer] how often, in ms, to check for expired sessions create($vertx, $sessionMapName, $reaperInterval)
Vertx
string
integer
\io\vertx\jphp\ext\web\sstore\LocalSessionStore
the session store
createSession( $arg0, $arg1 = null) : \io\vertx\jphp\ext\web\sstore\Session
param $timeout [integer] - the session timeout, in ms createSession($timeout)
Create a new session.
param $timeout [integer] - the session timeout, in ms param $length [integer] - the required length for the session id createSession($timeout, $length)
integer
integer
\io\vertx\jphp\ext\web\sstore\Session
the session
delete( $arg0, $arg1) : void
string
callable
get( $arg0, $arg1) : void
string
callable
init( $arg0, $arg1) : $this
Vertx
array
$this
self
put( $arg0, $arg1) : void
Session
callable
retryTimeout() : integer
A non positive value means there is no retry at all.
integer
the timeout value, in ms
size( $arg0) : void
Beware of the result which is just an estimate, in particular with distributed session stores.
callable
DEFAULT_SESSIONID_LENGTH
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_REAPER_INTERVAL
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|
DEFAULT_SESSION_MAP_NAME
var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
---|