What are the valid Connection.add options?

Hello,

So the important options/parameters are:

  • expiry : time to live (TTL),time before the key/document is deleted from Couchbase
  • flags : usually something internal you should not need it
  • Format : Used to set the format of the value you want to save see http://www.couchbase.com/autodocs/couchbase-node-client-1.2.0/global.html
  • persist_to : durability constraints, that check if the document has been saved to disk on x nodes
  • replicate_to : durability constraints, that check if the document has been replicated, in memory on x nodes

Note the durability constraints, do not “force” the write, just allow you to check if this is done, see couchbase-devguide-2.2

Regards
Tug
@tgrall