RedisConnection extends NosqlConnection
Class RedisConnection
Tags
Table of Contents
Properties
- $resource : Redis|RedisCluster
Methods
- __construct() : mixed
- connect() : mixed
- Connects to data source.
- disconnect() : mixed
- Disconects from data source.
- get() : mixed
- getConfiguration() : array<string|int, mixed>
- Returns the array with the connection parameters.
- getMaxAllowedPacket() : int
- Returns max packet length to send to or receive from the database server.
- getResource() : resource
- Returns the resource of the connection.
- isConnected() : bool
- Returns the state of the connection.
- set() : mixed
Properties
$resource
public
Redis|RedisCluster
$resource
Methods
__construct()
public
__construct(array<string|int, mixed> $configuration) : mixed
Parameters
- $configuration : array<string|int, mixed>
connect()
Connects to data source.
public
connect() : mixed
disconnect()
Disconects from data source.
public
disconnect() : mixed
get()
public
get(mixed $key) : mixed
Parameters
- $key : mixed
getConfiguration()
Returns the array with the connection parameters.
public
getConfiguration() : array<string|int, mixed>
Return values
array<string|int, mixed>getMaxAllowedPacket()
Returns max packet length to send to or receive from the database server.
public
getMaxAllowedPacket() : int
Return values
intgetResource()
Returns the resource of the connection.
public
getResource() : resource
Return values
resourceisConnected()
Returns the state of the connection.
public
isConnected() : bool
Return values
boolset()
public
set(mixed $key, mixed $value) : mixed
Parameters
- $key : mixed
- $value : mixed