Are the options documented somewhere ?
The reason I ask is because I want to do is set an option that will ensure the document is persisted to disk before returning. What I did was set the persist_to option to a number >=1. I think that should do it, but I just want to confirm that is the correct option.
/**
- Like {@linkcode Connection#set} but will fail if the key already exists.
- @param {string} key
- @param {string|object|Buffer} value
- @param {object=} options
- @param {integer} options.expiry
- @param {integer} options.flags
- @param {string|integer} options.format
- @param {integer} options.persist_to
- @param {integer} options.replicate_to
- @param {KeyCallback} callback
- @see Connection#set
-
@see Connection#addMulti
*/
Connection.prototype.add = function(key, value, options, callback) {
this._invokeStorage(this._cb.addMulti, arguments);
};