class Database implements Database (View source)
protected array | $clients | The host address of the database. |
void | __construct(array $servers = []) Create a new Redis connection instance. | |
array | createAggregateClient(array $servers, array $options = []) Create a new aggregate client supporting sharding. | |
array | createSingleClients(array $servers, array $options = []) Create an array of single connection clients. | |
ClientInterface|null | connection(string $name = 'default') Get a specific Redis connection instance. | |
mixed | command(string $method, array $parameters = []) Run a command against the Redis database. | |
void | subscribe(array|string $channels, Closure $callback, string $connection = null, string $method = 'subscribe') Subscribe to a set of given channels for messages. | |
void | psubscribe(array|string $channels, Closure $callback, string $connection = null) Subscribe to a set of given channels with wildcards. | |
mixed | __call(string $method, array $parameters) Dynamically make a Redis command. |
Create a new Redis connection instance.
Create a new aggregate client supporting sharding.
Create an array of single connection clients.
Get a specific Redis connection instance.
Run a command against the Redis database.
Subscribe to a set of given channels for messages.
Subscribe to a set of given channels with wildcards.
Dynamically make a Redis command.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Redis/Database.html