feat : role
This commit is contained in:
@@ -272,6 +272,21 @@ class RedisCache
|
||||
return $this->getRedis($poolName)->sRem($key, $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 集合批量添加
|
||||
* @param $key
|
||||
* @param array $values
|
||||
* @param string $poolName
|
||||
* @return bool|int|Redis
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
* @throws RedisException
|
||||
*/
|
||||
public function sAddBatch($key, array $values, string $poolName = 'default')
|
||||
{
|
||||
return $this->getRedis($poolName)->sAddArray($key, $values);
|
||||
}
|
||||
|
||||
// +--------------------------------------------------------------------------------------------------------------------------------------------
|
||||
// | hash
|
||||
// +--------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user