RedisSessionHandler
class RedisSessionHandler extends SessionHandler (View source)
Redis based session storage handler based on the Redis class provided by the PHP redis extension.
Properties
private | $redis | ||
private string | $prefix |
Methods
__construct(Redis|RedisArray|RedisCluster|Client $redis, array $options = array())
List of available options:
- prefix: The prefix to use for the keys in order to avoid collision on the Redis server.
doRead($sessionId)
No description
read($session_id)
{@inheritdoc}
doWrite($sessionId, $data)
No description
write($session_id, $session_data)
{@inheritdoc}
destroy($session_id)
{@inheritdoc}
doDestroy($sessionId)
No description
close()
{@inheritdoc}
gc($maxlifetime)
{@inheritdoc}
updateTimestamp($sessionId, $data)
No description
Details
__construct(Redis|RedisArray|RedisCluster|Client $redis, array $options = array())
List of available options:
- prefix: The prefix to use for the keys in order to avoid collision on the Redis server.
protected
doRead($sessionId)
No description
read($session_id)
{@inheritdoc}
protected
doWrite($sessionId, $data)
No description
write($session_id, $session_data)
{@inheritdoc}
destroy($session_id)
{@inheritdoc}
protected
doDestroy($sessionId)
No description
close()
{@inheritdoc}
gc($maxlifetime)
{@inheritdoc}
updateTimestamp($sessionId, $data)
No description