Connection
class Connection (View source)
Properties
protected Client | $client | The Predis client. |
Methods
void | createSubscription(array|string $channels, Closure $callback, string $method = 'subscribe') Subscribe to a set of given channels for messages. | |
ConcurrencyLimiterBuilder | funnel(string $name) Funnel a callback for a maximum number of simultaneous executions. | |
DurationLimiterBuilder | throttle(string $name) Throttle a callback for a maximum number of executions over a given duration. | |
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. |
Details
abstract void createSubscription(array|string $channels, Closure $callback, string $method = 'subscribe')
Subscribe to a set of given channels for messages.
ConcurrencyLimiterBuilder funnel(string $name)
Funnel a callback for a maximum number of simultaneous executions.
DurationLimiterBuilder throttle(string $name)
Throttle a callback for a maximum number of executions over a given duration.
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Redis/Connections/Connection.html