interface Illuminate / Contracts / Redis / Connection
You are viewing an older version of the documentation. For the latest, please visit master documentation.

Connection

Methods

public

subscribe ( $channels , Closure $callback ) : void

Subscribe to a set of given channels for messages.

Parameters

  • $channels array|string
  • $callback Closure
public

psubscribe ( $channels , Closure $callback ) : void

Subscribe to a set of given channels with wildcards.

Parameters

  • $channels array|string
  • $callback Closure
public

command ( $method , array $parameters ) : mixed

Run a command against the Redis database.

Parameters

  • $method string
  • $parameters array