Spec-Zone.ru › Symfony 4.1

RedisSessionHandler

class RedisSessionHandler extends AbstractSessionHandler

Redis based session storage handler based on the Redis class provided by the PHP redis extension.

Методы

open($savePath, $sessionName)

{@inheritdoc}

from AbstractSessionHandler
string doRead(string $sessionId)
bool doWrite(string $sessionId, string $data)
bool doDestroy(string $sessionId)
validateId($sessionId)

{@inheritdoc}

from AbstractSessionHandler
read($sessionId)

{@inheritdoc}

from AbstractSessionHandler
write($sessionId, $data)

{@inheritdoc}

from AbstractSessionHandler
destroy($sessionId)

{@inheritdoc}

from AbstractSessionHandler
__construct(Redis|RedisArray|RedisCluster|Client|RedisProxy $redis, array $options = array())

Список доступных параметров: * prefix: Префикс для ключей, используемых для предотвращения коллизий на сервере Redis.

bool close()

{@inheritdoc}

bool gc($maxlifetime)

{@inheritdoc}

updateTimestamp($sessionId, $data)

{@inheritdoc}

Детали

open($savePath, $sessionName)

{@inheritdoc}

Параметры

$savePath
$sessionName

protected string doRead(string $sessionId)

Параметры

string $sessionId

Возвращаемое значение

string

protected bool doWrite(string $sessionId, string $data)

Параметры

string $sessionId
string $data

Возвращаемое значение

bool

protected bool doDestroy(string $sessionId)

Параметры

string $sessionId

Возвращаемое значение

bool

validateId($sessionId)

{@inheritdoc}

Параметры

$sessionId

read($sessionId)

{@inheritdoc}

Параметры

$sessionId

write($sessionId, $data)

{@inheritdoc}

Параметры

$sessionId
$data

destroy($sessionId)

{@inheritdoc}

Параметры

$sessionId

__construct(Redis|RedisArray|RedisCluster|Client|RedisProxy $redis, array $options = array())

Список доступных параметров: * prefix: Префикс для ключей, используемых для предотвращения коллизий на сервере Redis.

Параметры

Redis|RedisArray|RedisCluster|Client|RedisProxy $redis
array $options Ассоциативный массив параметров

Исключения

InvalidArgumentException При передаче неподдерживаемого клиента или параметров

bool close()

{@inheritdoc}

Возвращаемое значение

bool

bool gc($maxlifetime)

{@inheritdoc}

Параметры

$maxlifetime

Возвращаемое значение

bool

updateTimestamp($sessionId, $data)

{@inheritdoc}

Параметры

$sessionId
$data

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API