mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
Implement VRANGE command and add a test
This commit is contained in:
committed by
Michael Grunder
parent
7a69d7301c
commit
6ce3bd533a
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user