Spec-Zone.ru › Symfony 3.1

MemcachedSessionHandler

class MemcachedSessionHandler implements SessionHandlerInterface

MemcachedSessionHandler.

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

Методы

__construct(Memcached $memcached, array $options = array())

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

open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

destroy($sessionId)

{@inheritdoc}

gc($maxlifetime)

{@inheritdoc}

Подробности

__construct(Memcached $memcached, array $options = array())

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

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

Параметры

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

Исключения

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

open($savePath, $sessionName)

{@inheritdoc}

Параметры

$savePath
$sessionName

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

Параметры

$sessionId

write($sessionId, $data)

{@inheritdoc}

Параметры

$sessionId
$data

destroy($sessionId)

{@inheritdoc}

Параметры

$sessionId

gc($maxlifetime)

{@inheritdoc}

Параметры

$maxlifetime

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

Spec-Zone.ru

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