点击或拖拽改变大小

RedisClientSetRandomMemberAsync 方法 (String)

那么返回集合中的一个随机元素。

命名空间:  HslCommunication.Enthernet.Redis
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public Task<OperateResult<string>> SetRandomMemberAsync(
	string key
)

参数

key
类型:SystemString
集合关键字

返回值

类型:TaskOperateResultString
返回一个元素;如果集合为空,返回 nil 。
参见