Skip to content

Commit

Permalink
add: Redis method
Browse files Browse the repository at this point in the history
1. add method: zPopMin & zPopMax
2. fix method: xGroup & xInfo
  • Loading branch information
andiechang committed Jul 3, 2020
1 parent 65f7a28 commit 7e36d14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/redis/src/Connection/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
* @method int zCount(string $key, int $start, int $end)
* @method float zIncrBy(string $key, float $value, string $member)
* @method int zLexCount(string $key, int $min, int $max)
* @method array zPopMin(string $key, int $count)
* @method array zPopMax(string $key, int $count)
* @method array zRange(string $key, int $start, int $end, bool $withscores = null)
* @method array zRangeByLex(string $key, int $min, int $max, int $offset = null, int $limit = null)
* @method array zRangeByScore(string $key, string $start, string $end, array $options = [])
Expand Down Expand Up @@ -141,8 +143,8 @@
* @method string xAdd(string $stream_key, string $id, array $message, int $max_len, bool $approximate)
* @method string xClaim(string $stream_key, string $group, string $consumer, string $min_idle_time, array $id_list, array $options)
* @method string xDel(string $stream_key, array $id_list)
* @method string xGroup() @TODO
* @method string xInfo() @TODO
* @method mixed xGroup(...$args)
* @method mixed xInfo(...$args)
* @method integer xLen(string $stream_key)
* @method array xPending(string $stream_key, string $group, string $start, string $end, int $count, string $consumer)
* @method array xRange(string $stream_key, string $start, string $end, int $count)
Expand Down Expand Up @@ -248,6 +250,8 @@ abstract class Connection extends AbstractConnection implements ConnectionInterf
'zcount',
'zincrby',
'zlexcount',
'zpopmin',
'zpopmax',
'zrange',
'zrangebylex',
'zrangebyscore',
Expand Down
6 changes: 4 additions & 2 deletions src/redis/src/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
* @method static int zCount(string $key, int $start, int $end)
* @method static float zIncrBy(string $key, float $value, string $member)
* @method static int zLexCount(string $key, int $min, int $max)
* @method static array zPopMin(string $key, int $count)
* @method static array zPopMax(string $key, int $count)
* @method static array zRange(string $key, int $start, int $end, bool $withscores = null)
* @method static array zRangeByLex(string $key, int $min, int $max, int $offset = null, int $limit = null)
* @method static array zRangeByScore(string $key, string $start, string $end, array $options = [])
Expand Down Expand Up @@ -142,8 +144,8 @@
* @method static string xAdd(string $stream_key, string $id, array $message, int $max_len, bool $approximate)
* @method static string xClaim(string $stream_key, string $group, string $consumer, string $min_idle_time, array $id_list, array $options)
* @method static string xDel(string $stream_key, array $id_list)
* @method static string xGroup() @TODO
* @method static string xInfo() @TODO
* @method static mixed xGroup(...$args)
* @method static mixed xInfo(...$args)
* @method static integer xLen(string $stream_key)
* @method static array xPending(string $stream_key, string $group, string $start, string $end, int $count, string $consumer)
* @method static array xRange(string $stream_key, string $start, string $end, int $count)
Expand Down

0 comments on commit 7e36d14

Please sign in to comment.