点击或拖拽改变大小

RedisClientSetCard 方法

返回集合 key 的基数(集合中元素的数量)。当 key 不存在时,返回 0 。

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

参数

key
类型:SystemString
集合 key 的名称

返回值

类型:OperateResultInt32
集合的基数。
参见