Implement VRANGE command and add a test

This commit is contained in:
michael-grunder
2025-09-18 08:08:14 -07:00
committed by Michael Grunder
parent 7a69d7301c
commit 6ce3bd533a
11 changed files with 121 additions and 11 deletions
+13
View File
@@ -1108,6 +1108,19 @@ class RedisCluster {
*/
public function vrandmember(string $key, int $count = 0): RedisCluster|array|string|false;
/**
* Retreive a lexographical range of elements from a vector set
*
* @param string $key The vector set to query.
* @param string $min The minimum element to return.
* @param string $max The maximum element to return.
* @param int $count An optional maximum number of elements to return.
*
* @return RedisCluster|array|false An array of elements in the specified range.`
*/
public function vrange(string $key, string $min, string $max, int $count = -1): RedisCluster|array|false;
/**
* @see Redis::vrem
*/