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)
void
start()
void
bool
bool
bool
has(string $key)
bool
mixed
get(string $key, mixed $default = null)
mixed
void
set(string $key, mixed $value)
void
void
remove(string $key)
void
void
clear()
void
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

Parameters

string $host
int $port
int $database
string|null $password
string $prefix
int $lifetimeSeconds
string $cookieName
float $timeout

start

void start()

No description

Return Value

void

started

bool started()

No description

Return Value

bool

has

bool has(string $key)

No description

Parameters

string $key

Return Value

bool

get

mixed get(string $key, mixed $default = null)

No description

Parameters

string $key
mixed $default

Return Value

mixed

set

void set(string $key, mixed $value)

No description

Parameters

string $key
mixed $value

Return Value

void

remove

void remove(string $key)

No description

Parameters

string $key

Return Value

void

clear

void clear()

No description

Return Value

void

regenerate

void regenerate(bool $deleteOldSession = true)

No description

Parameters

bool $deleteOldSession

Return Value

void