class PhpRedisConnection extends Connection (View source)
void | createSubscription(array|string $channels, Closure $callback, string $method = 'subscribe') Subscribe to a set of given channels for messages. | |
mixed | client() Get the underlying Redis client. | from Connection |
void | subscribe(array|string $channels, Closure $callback) Subscribe to a set of given channels for messages. | |
void | psubscribe(array|string $channels, Closure $callback) Subscribe to a set of given channels with wildcards. | |
mixed | command(string $method, array $parameters = array()) Run a command against the Redis database. | from Connection |
mixed | __call(string $method, array $parameters) Pass other method calls down to the underlying client. | |
void | __construct(Redis $client) Create a new Predis connection. | |
string|null | get(string $key) Returns the value of the given key. | |
array | mget(array $keys) Get the values of all the given keys. | |
bool | set(string $key, mixed $value, string|null $expireResolution = null, int|null $expireTTL = null, string|null $flag = null) Set the string value in argument as value of the key. | |
int|false | lrem(string $key, int $count, $value) Removes the first count occurences of the value element from the list. | |
mixed|false | spop(string $key, int|null $count = null) Removes and returns a random element from the set value at key. | |
int | zadd(string $key, mixed $dictionary) Add one or more members to a sorted set or update its score if it already exists. | |
mixed | evalsha(string $script, int $numkeys, mixed $arguments) Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself. | |
void | disconnect() Disconnects from the Redis instance. |
Subscribe to a set of given channels for messages.
Get the underlying Redis client.
Subscribe to a set of given channels for messages.
Subscribe to a set of given channels with wildcards.
Run a command against the Redis database.
Pass other method calls down to the underlying client.
Create a new Predis connection.
Returns the value of the given key.
Get the values of all the given keys.
Set the string value in argument as value of the key.
Removes the first count occurences of the value element from the list.
Removes and returns a random element from the set value at key.
Add one or more members to a sorted set or update its score if it already exists.
Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself.
Disconnects from the Redis instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Redis/Connections/PhpRedisConnection.html