Skip to content

Commit

Permalink
Merge pull request #68 from alexander-schranz/patch-1
Browse files Browse the repository at this point in the history
Update Docs for zpopmin and zpopmax
  • Loading branch information
ukko authored Oct 16, 2019
2 parents 4b64604 + 2779cfc commit dc5f370
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -3537,6 +3537,52 @@ public function bzPopMin($key1, $key2, $timeout)
{
}

/**
* Can pop the highest scoring members from one ZSET.
*
* @param string $key
* @param int $count
*
* @return array Either an array with the key member and score of the highest element or an empty array
* if there is no element to pop.
*
* @since >= 5.0
* @link https://redis.io/commands/zpopmax
* @example
* <pre>
* // Pop the *lowest* scoring member from set `zs1`.
* $redis->zPopMax('zs1');
* // Pop the *lowest* 3 scoring member from set `zs1`.
* $redis->zPopMax('zs1', 3);
* </pre>
*/
public function zPopMax($key, $count = 1)
{
}

/**
* Can pop the lowest scoring members from one ZSET.
*
* @param string $key
* @param int $count
*
* @return array Either an array with the key member and score of the lowest element or an empty array
* if there is no element to pop.
*
* @since >= 5.0
* @link https://redis.io/commands/zpopmin
* @example
* <pre>
* // Pop the *lowest* scoring member from set `zs1`.
* $redis->zPopMin('zs1');
* // Pop the *lowest* 3 scoring member from set `zs1`.
* $redis->zPopMin('zs1', 3);
* </pre>
*/
public function zPopMin($key, $count = 1)
{
}

/**
* Adds a value to the hash stored at key. If this value is already in the hash, FALSE is returned.
*
Expand Down

0 comments on commit dc5f370

Please sign in to comment.