点击或拖拽改变大小

RedisClientListLeftPushX 方法

将值 value 插入到列表 key 的表头,当且仅当 key 存在并且是一个列表。和 LPUSH 命令相反,当 key 不存在时, LPUSHX 命令什么也不做。 返回LPUSHX 命令执行之后,表的长度。

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

参数

key
类型:SystemString
关键字
value
类型:SystemString

返回值

类型:OperateResultInt32
是否插入数据成功
参见