MemcacheSessionHandler
class MemcacheSessionHandler implements SessionHandlerInterface
MemcacheSessionHandler.
Методы
| __construct(Memcache $memcache, array $options = array()) Конструктор. | ||
| open($savePath, $sessionName) {@inheritdoc} | ||
| close() {@inheritdoc} | ||
| read($sessionId) {@inheritdoc} | ||
| write($sessionId, $data) {@inheritdoc} | ||
| destroy($sessionId) {@inheritdoc} | ||
| gc($maxlifetime) {@inheritdoc} |
Подробное описание
__construct(Memcache $memcache, array $options = array())
Конструктор.
Список доступных опций: * prefix: Префикс для ключей memcache, чтобы избежать коллизий * expiretime: Время жизни в секундах
Параметры
| Memcache | $memcache | Экземпляр \Memcache |
| Массив | $options | Ассоциативный массив опций Memcache |
Исключения
| 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.2/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.html