Bitrix API

RedisConnection extends NosqlConnection

Class RedisConnection

Tags
@method

(): \Redis|\RedisCluster

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

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

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
int

getResource()

Returns the resource of the connection.

public getResource() : resource
Return values
resource

isConnected()

Returns the state of the connection.

public isConnected() : bool
Return values
bool

set()

public set(mixed $key, mixed $value) : mixed
Parameters
$key : mixed
$value : mixed

        
On this page

Search results