Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method signatures for magic method calls to redis drivers #94

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions lib/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,32 @@
* @package Resque/Redis
* @author Chris Boulton <[email protected]>
* @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
{
Expand Down