-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRedisStaticCall.php
34 lines (31 loc) · 1.01 KB
/
RedisStaticCall.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* FileName:RedisStaticCall.php
* Author:张哲
* Email:[email protected]
* Date:2021/10/30 0030
* Time:9:23
*/
declare(strict_types=1);
namespace Zhe\laravelRedisClient;
/**
* @method static string get(string $key)
* @method static bool set(string $key, string $value)
* @method static bool del(string $key)
* @method static bool delByKeys(array $key)
* @method static bool has(string $key)
* @method static bool expire(string $key)
* @method static bool incrInteger(string $key, int $num = 1)
* @method static bool decrInteger(string $key, int $num = 1)
* @method static bool sAdd(string $key, $value)
* @method static array sMembers(string $key)
* @method static bool sIsMember(string $key, $value)
* @method static int sCard(string $key)
* @method static bool sRem($key, ...$value)
* @method static \Redis getRedis()
*/
class RedisStaticCall {
public static function __callStatic($name, $arguments) {
return call_user_func_array([RedisClient::getInstance(), $name], $arguments);
}
}