点击或拖拽改变大小

RedisClientListRightPush 方法 (String, String)

将一个或多个值 value 插入到列表 key 的表尾(最右边)。 如果 key 不存在,一个空列表会被创建并执行 RPUSH 操作。当 key 存在但不是列表类型时,返回一个错误。

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

参数

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

返回值

类型:OperateResultInt32
返回执行 RPUSH 操作后,表的长度。
参见