MemcachedSessionHandler
class MemcachedSessionHandler implements SessionHandlerInterface
Memcached based session storage handler based on the Memcached class provided by the PHP memcached extension.
Methods
__construct(Memcached $memcached, array $options = array()) List of available options: * prefix: The prefix to use for the memcached keys in order to avoid collision * expiretime: The time to live in seconds | ||
open($savePath, $sessionName) {@inheritdoc} | ||
close() {@inheritdoc} | ||
read($sessionId) {@inheritdoc} | ||
write($sessionId, $data) {@inheritdoc} | ||
destroy($sessionId) {@inheritdoc} | ||
gc($maxlifetime) {@inheritdoc} |
Details
__construct(Memcached $memcached, array $options = array())
List of available options: * prefix: The prefix to use for the memcached keys in order to avoid collision * expiretime: The time to live in seconds
Parameters
Memcached | $memcached | A \Memcached instance |
array | $options | An associative array of Memcached options |
Exceptions
InvalidArgumentException | When unsupported options are passed |
open($savePath, $sessionName)
{@inheritdoc}
Parameters
$savePath | ||
$sessionName |
close()
{@inheritdoc}
read($sessionId)
{@inheritdoc}
Parameters
$sessionId |
write($sessionId, $data)
{@inheritdoc}
Parameters
$sessionId | ||
$data |
destroy($sessionId)
{@inheritdoc}
Parameters
$sessionId |
gc($maxlifetime)
{@inheritdoc}
Parameters
$maxlifetime |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/HttpFoundation/Session/Storage/Handler/MemcachedSessionHandler.html