mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
Implement VRANDMEMBER
`VRANDMEMBER` has the exact same semantics of `SRANDMEMBER` so make `SRANDMEMBER` a keyword based command and use it for `VRANDMEMBER`. See #2543
This commit is contained in:
committed by
Michael Grunder
parent
96378b70fd
commit
1deca62841
@@ -4281,6 +4281,14 @@ class Redis {
|
||||
*/
|
||||
public function vemb(string $key, mixed $member, bool $raw = false): Redis|array|false;
|
||||
|
||||
/**
|
||||
* Get one or more random members from a vector set
|
||||
*
|
||||
* @param string $key The vector set to query.
|
||||
* @param int $count The number of random members to return.
|
||||
*/
|
||||
public function vrandmember(string $key, int $count = 0): Redis|array|string|false;
|
||||
|
||||
/**
|
||||
* Truncate a STREAM key in various ways.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user