MemcacheSessionHandler
class MemcacheSessionHandler implements SessionHandlerInterface
Методы
| __construct(Memcache $memcache, array $options = array()) Список доступных опций: * prefix: Префикс для использования с ключами memcache для предотвращения коллизий * expiretime: Время жизни в секундах | ||
| 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/2.7/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcacheSessionHandler.html