class RedisSessionHandler extends AbstractSessionHandler
Redis based session storage handler based on the Redis class provided by the PHP redis extension.
open($savePath, $sessionName) {@inheritdoc} | from AbstractSessionHandler | |
string | doRead(string $sessionId) | |
bool | doWrite(string $sessionId, string $data) | |
bool | doDestroy(string $sessionId) | |
validateId($sessionId) {@inheritdoc} | from AbstractSessionHandler | |
read($sessionId) {@inheritdoc} | from AbstractSessionHandler | |
write($sessionId, $data) {@inheritdoc} | from AbstractSessionHandler | |
destroy($sessionId) {@inheritdoc} | from AbstractSessionHandler | |
__construct(Redis|RedisArray|RedisCluster|Client|RedisProxy $redis, array $options = array()) List of available options: * prefix: The prefix to use for the keys in order to avoid collision on the Redis server. | ||
bool | close() {@inheritdoc} | |
bool | gc($maxlifetime) {@inheritdoc} | |
updateTimestamp($sessionId, $data) {@inheritdoc} |
{@inheritdoc}
$savePath | ||
$sessionName |
string | $sessionId |
string |
string | $sessionId | |
string | $data |
bool |
string | $sessionId |
bool |
{@inheritdoc}
$sessionId |
{@inheritdoc}
$sessionId |
{@inheritdoc}
$sessionId | ||
$data |
{@inheritdoc}
$sessionId |
List of available options: * prefix: The prefix to use for the keys in order to avoid collision on the Redis server.
Redis|RedisArray|RedisCluster|Client|RedisProxy | $redis | |
array | $options | An associative array of options |
InvalidArgumentException | When unsupported client or options are passed |
{@inheritdoc}
bool |
{@inheritdoc}
$maxlifetime |
bool |
{@inheritdoc}
$sessionId | ||
$data |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.html