PHP Class Redis, someline-starter

Inheritance: extends Illuminate\Support\Facades\Redis
Datei anzeigen Open project: someline/someline-starter Class Usage Examples

Public Methods

Method Description
command ( string $method, array $parameters = [] ) : mixed Run a command against the Redis database.
connection ( string $name = 'default' ) : Predis\ClientInterface | null Get a specific Redis connection instance.
psubscribe ( array | string $channels, Closure $callback, string $connection = null ) : void Subscribe to a set of given channels with wildcards.
subscribe ( array | string $channels, Closure $callback, string $connection = null, string $method = 'subscribe' ) : void Subscribe to a set of given channels for messages.

Method Details

command() public static method

Run a command against the Redis database.
public static command ( string $method, array $parameters = [] ) : mixed
$method string
$parameters array
return mixed

connection() public static method

Get a specific Redis connection instance.
public static connection ( string $name = 'default' ) : Predis\ClientInterface | null
$name string
return Predis\ClientInterface | null

psubscribe() public static method

Subscribe to a set of given channels with wildcards.
public static psubscribe ( array | string $channels, Closure $callback, string $connection = null ) : void
$channels array | string
$callback Closure
$connection string
return void

subscribe() public static method

Subscribe to a set of given channels for messages.
public static subscribe ( array | string $channels, Closure $callback, string $connection = null, string $method = 'subscribe' ) : void
$channels array | string
$callback Closure
$connection string
$method string
return void