Retrieve LIST elements to compare and Update using C client

Hi Experts,

I have a List for example - LIST(’[“C”, “B”, “A”]’) .

Suppose I have input element “A” with next record to be inserted in list.

Here i have to put a check, if that element already exists in LIST or not? Is there any C library function to get all list elements, can anyone please advice.

See “key_basics_put” and “key_basics_get” tests in “src/test/aerospike_key/key_basics.c” for an full list write/read example.

There are also list specific operation examples in “examples/basic_examples/list”.

If you need to do frequent lookups, I suggest using a map instead. See “examples/basic_examples/map”.

Thanks Brian

© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.