From 922b0f6a431552941d74a421dddba29929a13fde Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Sun, 28 Apr 2024 15:58:37 +0200 Subject: [PATCH] Add method signatures for magic method calls to redis drivers --- lib/Redis.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/lib/Redis.php b/lib/Redis.php index 5055774..8378e2b 100644 --- a/lib/Redis.php +++ b/lib/Redis.php @@ -14,6 +14,32 @@ * @package Resque/Redis * @author Chris Boulton * @license http://www.opensource.org/licenses/mit-license.php + * + * @method array|null blpop(string $keyN, int $timeout) + * @method int decrby(string $key, int $decrement) + * @method int del(string|array ...$keys) + * @method int exists(string $key) + * @method int expire(string $key, int $seconds) + * @method false|string get(string $key) + * @method int incrby(string $key, int $decrement) + * @method array keys(string $key) + * @method int llen(string $key) + * @method string|null lpop(string $key) + * @method array lrange(string $key, int $start, int $stop) + * @method int lrem(string $key, int $count, mixed $value) + * @method string ping(string|null $name = null) + * @method string|null rpop(string $key) + * @method string|null rpoplpush(string $source, string $destination) + * @method int rpush(string $key, mixed $value, mixed $valueN = null) + * @method int sadd(string $key, mixed $value, string $valueN = null) + * @method bool set(string $key, string $value, int | array $options = null) + * @method int sismember(string $key, string $member) + * @method array smembers(string $key) + * @method int srem(string $key, mixed $value, string $valueN = null) + * @method int zadd(string $key, double $score, string $value) + * @method int zcard(string $key) + * @method array zrangebyscore(string $key, mixed $start, mixed $stop, array $args = null) + * @method int zrem(string $key, string $member) */ class Redis {