Connection
abstract class Connection (View source)
Traits
Properties
static protected array | $macros | The registered string macros. |
from Macroable |
protected Redis | $client | The Redis client. |
|
protected string|null | $name | The Redis connection name. |
|
protected Dispatcher|null | $events | The event dispatcher instance. |
Methods
Mix another object into the class.
Dynamically handle calls to the class.
Pass other method calls down to the underlying client.
Subscribe to a set of given channels for messages.
Funnel a callback for a maximum number of simultaneous executions.
Throttle a callback for a maximum number of executions over a given duration.
Get the underlying Redis client.
Subscribe to a set of given channels with wildcards.
Run a command against the Redis database.
Parse the command's parameters for event dispatching.
Get the connection name.
Set the connections name.
Get the event dispatcher used by the connection.
Unset the event dispatcher instance on the connection.
Details
mixed
__call(string $method, array $parameters)
Pass other method calls down to the underlying client.
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.
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.
protected array
parseParametersForEvent(array $parameters)
Parse the command's parameters for event dispatching.
protected void
event(mixed $event)
deprecated
deprecated since Laravel 11.x
Fire the given event if possible.