【发布时间】:2017-09-27 06:55:43
【问题描述】:
在 aerospike 中,https://godoc.org/github.com/aerospike/aerospike-client-go#ListAppendOp 操作可以与 client.Operate 方法一起使用以追加到列表中。有没有办法添加到列表中?
http://www.aerospike.com/docs/guide/cdt-list.html#development-guidelines-and-tips 确实提到插入可以发生在列表的任一端。但是找不到合适的 API 来做同样的事情。有什么帮助吗?
【问题讨论】:
-
好的。找到 godoc.org/github.com/aerospike/aerospike-client-go#ListInsertOp 并使用 0 作为索引...但不确定这对于消息列表如何工作