프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |