点击或拖拽改变大小

RedisClientListSetAsync 方法

设置数组的某一个索引的数据信息,当 index 参数超出范围,或对一个空列表( key 不存在)进行 LSET 时,返回一个错误。

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

参数

key
类型:SystemString
关键字
index
类型:SystemInt64
索引位置
value
类型:SystemString

返回值

类型:TaskOperateResult
操作成功返回 ok ,否则返回错误信息。
参见