Redis
class Redis implements StoreInterface
Redis store.
Properties
protected Redis | $redis | Redis client. | |
protected array|bool | $classWhitelist | Class whitelist. |
Methods
write(string $sessionId, array $sessionData, int $dataTTL)
Writes session data.
array
read(string $sessionId)
Reads and returns session data.
delete(string $sessionId)
Destroys the session data assiciated with the provided id.
gc(int $dataTTL)
Garbage collector that deletes expired session data.
Details
at line 40
__construct(Redis $redis, array|bool $classWhitelist = false)
Constructor.
at line 50
write(string $sessionId, array $sessionData, int $dataTTL)
Writes session data.
at line 58
array
read(string $sessionId)
Reads and returns session data.
at line 68
delete(string $sessionId)
Destroys the session data assiciated with the provided id.
at line 76
gc(int $dataTTL)
Garbage collector that deletes expired session data.