【发布时间】:2017-10-17 18:43:22
【问题描述】:
我正在使用列表数据类型(http://www.aerospike.com/docs/guide/cdt-list.html ) 在 aerospike 中使用 golang 客户端。我可以使用 ListInsertOp (https://godoc.org/github.com/aerospike/aerospike-client-go#ListInsertOp) 在给定条目的列表中插入值。
但是,我想使用 ListSetOp (https://godoc.org/github.com/aerospike/aerospike-client-go#ListSetOp) 或 ListRemoveOp (https://godoc.org/github.com/aerospike/aerospike-client-go#ListRemoveOp) 更新/删除给定的列表值
为了做到这一点,我需要一个索引。我怎样才能得到这个索引?有没有办法可以遍历所有列表值并获取索引,然后执行更新或删除操作?
【问题讨论】: