Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update Docs for zpopmin and zpopmax #68

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

Merged
merged 1 commit into from
Oct 16, 2019
Merged
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
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