Spec-Zone.ru › Symfony 4.1

MemcachedSessionHandler

class MemcachedSessionHandler extends AbstractSessionHandler

Обработчик хранения сеансов на основе Memcached, основанный на классе Memcached, предоставляемом расширением PHP memcached.

Методы

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(Memcached $memcached, array $options = array())

Конструктор.

close()

{@inheritdoc}

updateTimestamp($sessionId, $data)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

Memcached getMemcached()

Возвращает экземпляр Memcached.

Подробности

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(Memcached $memcached, array $options = array())

Конструктор.

Доступные параметры: * prefix: Префикс для ключей memcached для предотвращения коллизий * expiretime: Время жизни в секундах.

Параметры

Memcached $memcached Экземпляр \Memcached
array $options Ассоциативный массив параметров Memcached

Исключения

InvalidArgumentException При передаче недопустимых параметров

close()

{@inheritdoc}

updateTimestamp($sessionId, $data)

{@inheritdoc}

Параметры

$sessionId
$data

gc($maxlifetime)

{@inheritdoc}

Параметры

$maxlifetime

protected Memcached getMemcached()

Возвращает экземпляр Memcached.

Значение возврата

Memcached

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

Spec-Zone.ru

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