ValkeyProviderInfo
in package
implements
CacheProviderInfo
Represents Valkey provider info.
Table of Contents
Interfaces
- CacheProviderInfo
- Base type for cache provider info.
Methods
- __construct() : mixed
- getDatabaseNumber() : int
- Database that should be selected.
- getEndPoint() : EndPoint
- Gets server endpoint.
- getPassword() : string
- Password to authenticate with.
- getPrefix() : string
- A prefix that gets applied to every key.
- getServerHost() : string
- Retrieves the server hostname.
- getServerPort() : int
- Retrieves the server Unix path.
- getUsername() : string
- Username to authenticate with.
- hasDatabaseNumber() : bool
- Whether a database should be selected.
- hasPassword() : bool
- Whether a password should be used.
- hasUsername() : bool
- Whether a username should be used.
- isPersistent() : bool
- Whether the connection should be persistent.
Methods
__construct()
public
__construct(EndPoint $endPoint, string $prefix, bool $persist, string $username, string $password, int $dbNumber) : mixed
Parameters
- $endPoint : EndPoint
- $prefix : string
- $persist : bool
- $username : string
- $password : string
- $dbNumber : int
getDatabaseNumber()
Database that should be selected.
public
getDatabaseNumber() : int
Return values
intgetEndPoint()
Gets server endpoint.
public
getEndPoint() : EndPoint
Return values
EndPointgetPassword()
Password to authenticate with.
public
getPassword() : string
Return values
stringgetPrefix()
A prefix that gets applied to every key.
public
getPrefix() : string
Return values
stringgetServerHost()
Retrieves the server hostname.
public
getServerHost() : string
Tags
Return values
stringgetServerPort()
Retrieves the server Unix path.
public
getServerPort() : int
Return values
intgetUsername()
Username to authenticate with.
public
getUsername() : string
Return values
stringhasDatabaseNumber()
Whether a database should be selected.
public
hasDatabaseNumber() : bool
Return values
boolhasPassword()
Whether a password should be used.
public
hasPassword() : bool
Return values
boolhasUsername()
Whether a username should be used.
public
hasUsername() : bool
Return values
boolisPersistent()
Whether the connection should be persistent.
public
isPersistent() : bool