PredisConnection
class PredisConnection extends Connection mixin Client
Properties
| protected Client | $client | The Predis client. |
from Connection |
Methods
void
createSubscription(array|string $channels, Closure $callback, string $method = 'subscribe')
Subscribe to a set of given channels for messages.
void
subscribe(array|string $channels, Closure $callback)
Subscribe to a set of given channels for messages.
from
Connection
void
psubscribe(array|string $channels, Closure $callback)
Subscribe to a set of given channels with wildcards.
from
Connection
mixed
command(string $method, array $parameters = [])
Run a command against the Redis database.
from
Connection
mixed
__call(string $method, array $parameters)
Pass other method calls down to the underlying client.
from
Connection
void
__construct(Client $client)
Create a new Predis connection.
Details
at line 31
void
createSubscription(array|string $channels, Closure $callback, string $method = 'subscribe')
Subscribe to a set of given channels for messages.
in
Connection at line 34
mixed
client()
Get the underlying Redis client.
in
Connection at line 46
void
subscribe(array|string $channels, Closure $callback)
Subscribe to a set of given channels for messages.
in
Connection at line 58
void
psubscribe(array|string $channels, Closure $callback)
Subscribe to a set of given channels with wildcards.
in
Connection at line 70
mixed
command(string $method, array $parameters = [])
Run a command against the Redis database.
in
Connection at line 82
mixed
__call(string $method, array $parameters)
Pass other method calls down to the underlying client.
at line 18
void
__construct(Client $client)
Create a new Predis connection.