SessionRedisConfig
final class SessionRedisConfig (View source)
Carries the connection and key namespace settings for Redis-backed sessions
Methods
Defines the Redis endpoint, optional credentials and session key namespace
Returns the Redis server host.
Returns the Redis server TCP port.
Returns the Redis logical database number.
Returns the optional Redis authentication secret.
Returns the namespace prefix for Redis session keys.
Returns the Redis connection timeout in seconds.
Details
__construct
__construct(string $host, int $port, int $database, string|null $password, string $prefix, float $timeout)
Defines the Redis endpoint, optional credentials and session key namespace
host
string
host()
Returns the Redis server host.
port
int
port()
Returns the Redis server TCP port.
database
int
database()
Returns the Redis logical database number.
password
string|null
password()
Returns the optional Redis authentication secret.
prefix
string
prefix()
Returns the namespace prefix for Redis session keys.
timeout
float
timeout()
Returns the Redis connection timeout in seconds.