草庐IT

ListInsertOp

全部标签

go - 如何使用 golang 在 aerospike 中添加列表?

在aerospike中,https://godoc.org/github.com/aerospike/aerospike-client-go#ListAppendOpoperation可以与client.Operate方法一起使用以附加到列表。有没有办法添加到列表中?http://www.aerospike.com/docs/guide/cdt-list.html#development-guidelines-and-tips确实提到插入可以发生在列表的两端。但是找不到合适的API来做同样的事情。有什么帮助吗? 最佳答案 不熟悉Go

go - 如何使用 golang 在 aerospike 中添加列表?

在aerospike中,https://godoc.org/github.com/aerospike/aerospike-client-go#ListAppendOpoperation可以与client.Operate方法一起使用以附加到列表。有没有办法添加到列表中?http://www.aerospike.com/docs/guide/cdt-list.html#development-guidelines-and-tips确实提到插入可以发生在列表的两端。但是找不到合适的API来做同样的事情。有什么帮助吗? 最佳答案 不熟悉Go

go - Aerospike golang ListInsertOp 多个值

golangaerospike客户端中的ListInsertOp是否支持插入元素数组?如果我使用https://godoc.org/github.com/aerospike/aerospike-client-go#ListAppendOp,并传递一个数组([]string),它只是将整个数组作为一个值附加到列表中。我是用错了还是有其他方法可以做到这一点? 最佳答案 ListAppendOp是一个可变参数函数,它接受任意数量的interface{}类型的参数。如果您调用它来传递您的数组,它将收到一片interface{}([]inte