feat : rank
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user