PredisClusterConnection
class PredisClusterConnection extends PredisConnection (View source)
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. | from PredisConnection |
mixed | client() Get the underlying Redis client. | from Connection |
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. | from PredisConnection |
Details
void createSubscription(array|string $channels, Closure $callback, string $method = 'subscribe')
Subscribe to a set of given channels for messages.
mixed client()
Get the underlying Redis client.
void subscribe(array|string $channels, Closure $callback)
Subscribe to a set of given channels for messages.
void psubscribe(array|string $channels, Closure $callback)
Subscribe to a set of given channels with wildcards.
mixed command(string $method, array $parameters = [])
Run a command against the Redis database.
mixed __call(string $method, array $parameters)
Pass other method calls down to the underlying client.
void __construct(Client $client)
Create a new Predis connection.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Redis/Connections/PredisClusterConnection.html