RedisSessionStorage
final class RedisSessionStorage implements SessionStorageInterface (View source)
Methods
__construct(string $host = '127.0.0.1', int $port = 6379, int $database = 0, string|null $password = null, string $prefix = 'sess:', int $lifetimeSeconds = 7200, string $cookieName = 'LEMONADE_SESSION', float $timeout = 2.5)
start()
void
started()
bool
has(string $key)
bool
get(string $key, mixed $default = null)
mixed
set(string $key, mixed $value)
void
remove(string $key)
void
clear()
void
regenerate(bool $deleteOldSession = true)
void
Details
__construct
__construct(string $host = '127.0.0.1', int $port = 6379, int $database = 0, string|null $password = null, string $prefix = 'sess:', int $lifetimeSeconds = 7200, string $cookieName = 'LEMONADE_SESSION', float $timeout = 2.5)
No description
start
void
start()
No description
started
bool
started()
No description
has
bool
has(string $key)
No description
get
mixed
get(string $key, mixed $default = null)
No description
set
void
set(string $key, mixed $value)
No description
remove
void
remove(string $key)
No description
clear
void
clear()
No description
regenerate
void
regenerate(bool $deleteOldSession = true)
No description