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:
michael-grunder
2025-07-31 15:27:47 -07:00
committed by Michael Grunder
parent 96378b70fd
commit 1deca62841
14 changed files with 67 additions and 16 deletions
+8
View File
@@ -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.
*