Connection (Redis\Connections)

Connection

class Connection (View source)

Methods

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 = array())

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.

Parameters

array|string $channels
Closure $callback
string $method

Return Value

void

mixed client()

Get the underlying Redis client.

Return Value

mixed

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 = array())

Run a command against the Redis database.

Parameters

string $method
array $parameters

Return Value

mixed

mixed __call(string $method, array $parameters)

Pass other method calls down to the underlying client.

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.4/Illuminate/Redis/Connections/Connection.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部