PHP Class Redis, someline-starter

Inheritance: extends Illuminate\Support\Facades\Redis
Afficher le fichier Open project: someline/someline-starter Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

connection() public static méthode

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

psubscribe() public static méthode

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
Résultat void

subscribe() public static méthode

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
Résultat void