点击或拖拽改变大小

RedisClientAddSetKeyAsync 方法 (String, String)

将一个或多个 member 元素加入到集合 key 当中,已经存在于集合的 member 元素将被忽略。 假如 key 不存在,则创建一个只包含 member 元素作成员的集合。 当 key 不是集合类型时,返回一个错误。

命名空间:  HslCommunication.Enthernet.Redis
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:9.2.3.0 (9.2.3.0)
语法
public Task<OperateResult<int>> AddSetKeyAsync(
	string key,
	string[] values
)

参数

key
类型:SystemString
键名
values
类型:SystemString
添加的值

返回值

类型:TaskOperateResultInt32
添加到集合中的新元素的数量,不包括被忽略的元素。
参见