Extend Sorted Set support by implementing ZRANDMEMBER command (#825)

* Added support for ZRANDMEMBER, added test coverage

* Changed key to more specific on exception testing

Co-authored-by: Vladislav <vladislav@Admins-MacBook-Pro.local>
This commit is contained in:
Vladyslav Vildanov
2022-11-21 18:37:04 +02:00
committed by GitHub
parent 94bd54b2af
commit 169604bf74
4 changed files with 172 additions and 0 deletions
+1
View File
@@ -130,6 +130,7 @@ use Predis\Response\Status;
* @method array zmscore(string $key, string ...$member)
* @method array zpopmin(string $key, int $count = 1)
* @method array zpopmax(string $key, int $count = 1)
* @method mixed zrandmember(string $key, int $count = 1, bool $withScores = false)
* @method array zrange(string $key, int|string $start, int|string $stop, array $options = null)
* @method array zrangebyscore(string $key, int|string $min, int|string $max, array $options = null)
* @method int|null zrank(string $key, string $member)