Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (\Redis $redis, array $options=[]) | |
close () | |
destroy ($session_id) | |
gc ($maxlifetime) | |
open ($save_path, $session_id) | |
read ($session_id) | |
write ($session_id, $session_data) | |
Fonctions membres publiques statiques | |
static | isSupported () |
Attributs privés | |
$prefix | |
$redis | |
$ttl | |
Redis session storage handler
__construct | ( | \Redis | $redis, |
array | $options = [] |
||
) |
Constructor
\Redis | $redis | A Redis instance |
array | $options | Associative array of options to configure the handler |
Références $options, et RedisHandler\$redis.
close | ( | ) |
Close the session
destroy | ( | $session_id | ) |
Destroy a session, called automatically when running session_regenerate_id().
integer | $session_id | The session ID being destroyed |
gc | ( | $maxlifetime | ) |
Cleanup old sessions
integer | $maxlifetime | Sessions that have not updated for the last maxlifetime seconds will be removed |
|
static |
Test to see if the HandlerInterface is available
Implémente HandlerInterface.
open | ( | $save_path, | |
$session_id | |||
) |
Initialize session
string | $save_path | The path where to store/retrieve the session |
string | $session_id | The session id |
read | ( | $session_id | ) |
Read session data
string | $session_id | The session id to read data for |
write | ( | $session_id, | |
$session_data | |||
) |
Write session data
string | $session_id | The session id |
string | $session_data | The encoded session data |
|
private |
|
private |
Référencé par RedisHandler\__construct().
|
private |