libcouchbase ADD vs SET
Using the example "Hello C Couchbase" C program found here:
If I change the type of store action from LIBCOUCHBASE_SET to LIBCOUCHBASE_ADD and repeatedly run the program it always outputs the message "Successfully set hello." even though my understanding was that the add action should return an error if they key already exists.
Am I misinterpreting something or is their some other change that is required in the libcouchbase_store method?
We are using for testing libcouchbase 1.0.4 and the 1.8 enterprise server.