feat : rank

This commit is contained in:
2025-04-08 17:59:24 +08:00
parent 35abf99854
commit edb295cbe2
10 changed files with 495 additions and 0 deletions

View File

@@ -560,6 +560,21 @@ class RedisCache
{
return $this->getRedis($poolName)->zRank($key, $value);
}
/**
* @param $key
* @param int $start
* @param int $end
* @param bool $score
* @param string $poolName
* @return array|false|Redis
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function zRevRange($key, int $start = 0, int $end = -1, $score = false, string $poolName = RedisCode::DEFAULT_DB): false|array|Redis
{
return $this->getRedis($poolName)->zRevRange($key, $start, $end,$score);
}
// +--------------------------------------------------------------------------------------------------------------------------------------------
// | geo
// +--------------------------------------------------------------------------------------------------------------------------------------------