feat : rank

This commit is contained in:
2025-04-09 09:40:05 +08:00
parent edb295cbe2
commit 8c284937ac
6 changed files with 163 additions and 7 deletions

View File

@@ -409,16 +409,15 @@ class RedisCache
/**
* 单个字段的 hash 值原子增加
* @param $key
* @param $hashKey
* @param $hashValue
* @param string $key
* @param string $hashKey
* @param int $hashValue
* @param string $poolName
* @return false|int|Redis
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws RedisException
*/
public function HIncrBy($key, $hashKey, $hashValue, string $poolName = RedisCode::DEFAULT_DB)
public function hIncrBy(string $key, string $hashKey, int $hashValue, string $poolName = RedisCode::DEFAULT_DB): false|int|Redis
{
return $this->getRedis($poolName)->hincrby($key, $hashKey, $hashValue);
}