Spec-Zone.ru › Symfony 3.4

MemcachedSessionHandler

class MemcachedSessionHandler extends AbstractSessionHandler

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

Методы

open($savePath, $sessionName)

{@inheritdoc}

из AbstractSessionHandler
validateId($sessionId)

{@inheritdoc}

из AbstractSessionHandler
read($sessionId)

{@inheritdoc}

из AbstractSessionHandler
write($sessionId, $data)

{@inheritdoc}

из AbstractSessionHandler
destroy($sessionId)

{@inheritdoc}

из AbstractSessionHandler
__construct(Memcached $memcached, array $options = array())

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

close()

{@inheritdoc}

updateTimestamp($sessionId, $data)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

Детали

open($savePath, $sessionName)

{@inheritdoc}

Параметры

$savePath
$sessionName

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

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

Spec-Zone.ru

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