Class Core_Session_Phpredis
Redis Sessions using phpredis https://github.com/phpredis/phpredis
- Core_Session
- Core_Session_Phpredis
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/session/phpredis.php
Methods summary
public
|
|
public
boolean
|
#
sessionOpen( string $save_path, string $session_name )
The open callback works like a constructor in classes and is executed when the session is being opened. |
public
boolean
|
#
sessionClose( )
The close callback works like a destructor in classes and is executed after the session write callback has been called. |
protected
|
|
public
string
|
#
sessionRead( string $id )
The read callback must always return a session encoded (serialized) string, or an empty string if there is no data to read. |
public
boolean
|
#
sessionWrite( string $id, string $value )
The write callback is called when the session needs to be saved and closed. |
public
boolean
|
#
sessionDestroyer( string $id )
This callback is executed when a session is destroyed with session_destroy() |
public
boolean
|
#
sessionMaxlifetime( integer $maxlifetime, boolean $overwrite = FALSE )
This callback is executed when a session sets maxlifetime |
public
boolean
|
#
sessionGc( string $maxlifetime )
The garbage collector callback is invoked internally by PHP periodically in order to purge old session data. |
protected
boolean
|
|
protected
boolean
|
Methods inherited from Core_Session
_error()
,
_getDriverName()
,
_log()
,
_setSessionHandler()
,
close()
,
cookieLifetime()
,
debug()
,
destroy()
,
getMaxLifeTime()
,
getName()
,
hasSessionId()
,
isAcive()
,
isActive()
,
isStarted()
,
regenerateId()
,
setMaxLifeTime()
,
start()
Properties summary
protected
Redis
|
$_redis
Redis instance |
#
NULL
|
protected
boolean
|
$_read
Session has been read |
#
FALSE
|
protected
string
|
$_prefix
Lock prefix |
#
NULL
|
protected
integer
|
$_nextStepDelay
Next step delay (microseconds) Default 0,5 sec - 500000 microseconds |
#
500000
|
protected
integer
|
$_lockTimeout
Lock timeout |
#
10
|
protected
|
$_lockToken
Lock Token |
#
NULL
|
protected
|
$_lockKey
Lock Key |
#
NULL
|
protected
string
|
$_format
Pack format |
#
'i*'
|
Properties inherited from Core_Session
$_cookieLifetime
,
$_debug
,
$_error
,
$_handler
,
$_hasSessionId
,
$_maxlifetime
,
$_started