Documentation

PredisClusterConnection extends PredisConnection
in package

Table of Contents

$client  : Client
The Predis client.
__call()  : mixed
Pass other method calls down to the underlying client.
__construct()  : void
Create a new Predis connection.
client()  : mixed
Get the underlying Redis client.
command()  : mixed
Run a command against the Redis database.
createSubscription()  : void
Subscribe to a set of given channels for messages.
funnel()  : ConcurrencyLimiterBuilder
Funnel a callback for a maximum number of simultaneous executions.
psubscribe()  : void
Subscribe to a set of given channels with wildcards.
subscribe()  : void
Subscribe to a set of given channels for messages.
throttle()  : DurationLimiterBuilder
Throttle a callback for a maximum number of executions over a given duration.

Properties

Methods

__call()

Pass other method calls down to the underlying client.

public __call(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
$method : string
$parameters : array<string|int, mixed>
Return values
mixed

__construct()

Create a new Predis connection.

public __construct(Client $client) : void
Parameters
$client : Client
Return values
void

client()

Get the underlying Redis client.

public client() : mixed
Return values
mixed

command()

Run a command against the Redis database.

public command(string $method[, array<string|int, mixed> $parameters = [] ]) : mixed
Parameters
$method : string
$parameters : array<string|int, mixed> = []
Return values
mixed

createSubscription()

Subscribe to a set of given channels for messages.

public abstract createSubscription(array<string|int, mixed>|string $channels, Closure $callback[, string $method = 'subscribe' ]) : void
Parameters
$channels : array<string|int, mixed>|string
$callback : Closure
$method : string = 'subscribe'
Return values
void

psubscribe()

Subscribe to a set of given channels with wildcards.

public psubscribe(array<string|int, mixed>|string $channels, Closure $callback) : void
Parameters
$channels : array<string|int, mixed>|string
$callback : Closure
Return values
void

subscribe()

Subscribe to a set of given channels for messages.

public subscribe(array<string|int, mixed>|string $channels, Closure $callback) : void
Parameters
$channels : array<string|int, mixed>|string
$callback : Closure
Return values
void

Search results