Свойство | Тип | Описание | |
---|---|---|---|
$locked | Indicates an active session lock | ||
$locking | Indicates an sessions should be locked | ||
$prefix | string | ||
$redis | |||
$ttl | integer |
Метод | Описание | |
---|---|---|
__construct ( |
Redis session storage constructor. | |
__destruct ( ) | Destructor. | |
close ( ) | ||
destroy ( $sessionId ) | ||
gc ( $lifetime ) | ||
open ( $savePath, $sessionName ) | ||
read ( $sessionId ) | ||
setTtl ( integer $ttl ) | Change the default TTL. | |
write ( $sessionId, $data ) |
Метод | Описание | |
---|---|---|
getRedisKey ( string $key ) : string | Prepends the given key with a user-defined prefix (if any). | |
lockSession ( $sessionId ) | Lock the session data. |
Метод | Описание | |
---|---|---|
unlockSession ( ) | Unlock the session data. |
public __construct ( |
||
$redis | Redis database connection | |
$options | array | Session options |
$prefix | string | Prefix to use when writing session data |
protected getRedisKey ( string $key ) : string | ||
$key | string | key |
Результат | string | prefixed key |