PHP 클래스 Redis, someline-starter

상속: extends Illuminate\Support\Facades\Redis
파일 보기 프로젝트 열기: someline/someline-starter 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

command() 공개 정적인 메소드

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

connection() 공개 정적인 메소드

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

psubscribe() 공개 정적인 메소드

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
리턴 void

subscribe() 공개 정적인 메소드

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
리턴 void