W3cubDocs

/Laravel 5.8

Connection

interface Connection (View source)

Methods

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.

Details

void subscribe(array|string $channels, Closure $callback)

Subscribe to a set of given channels for messages.

Parameters

array|string $channels
Closure $callback

Return Value

void

void psubscribe(array|string $channels, Closure $callback)

Subscribe to a set of given channels with wildcards.

Parameters

array|string $channels
Closure $callback

Return Value

void

mixed command(string $method, array $parameters = [])

Run a command against the Redis database.

Parameters

string $method
array $parameters

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Contracts/Redis/Connection.html