Skip to content

Commit ecfce08

Browse files
committed
Add method signatures for magic method calls to redis drivers
1 parent b3131f2 commit ecfce08

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

lib/Redis.php

+26
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,32 @@
1414
* @package Resque/Redis
1515
* @author Chris Boulton <[email protected]>
1616
* @license http://www.opensource.org/licenses/mit-license.php
17+
*
18+
* @method array|null blpop(string $keyN, int $timeout)
19+
* @method int decrby(string $key, int $decrement)
20+
* @method int del(string|array ...$keys)
21+
* @method int exists(string $key)
22+
* @method int expire(string $key, int $seconds)
23+
* @method false|string get(string $key)
24+
* @method int incrby(string $key, int $decrement)
25+
* @method array keys(string $key)
26+
* @method int llen(string $key)
27+
* @method string|null lpop(string $key)
28+
* @method array lrange(string $key, int $start, int $stop)
29+
* @method int lrem(string $key, int $count, mixed $value)
30+
* @method string ping(string|null $name = null)
31+
* @method string|null rpop(string $key)
32+
* @method string|null rpoplpush(string $source, string $destination)
33+
* @method int rpush(string $key, mixed $value, mixed $valueN = null)
34+
* @method int sadd(string $key, mixed $value, string $valueN = null)
35+
* @method bool set(string $key, string $value, int | array $options = null)
36+
* @method int sismember(string $key, string $member)
37+
* @method array smembers(string $key)
38+
* @method int srem(string $key, mixed $value, string $valueN = null)
39+
* @method int zadd(string $key, double $score, string $value)
40+
* @method int zcard(string $key)
41+
* @method array zrangebyscore(string $key, mixed $start, mixed $stop, array $args = null)
42+
* @method int zrem(string $key, string $member)
1743
*/
1844
class Redis
1945
{

0 commit comments

Comments
 (0)