Couchbase Transactions C++ Client
1.0.0
Transactions client for couchbase
|
Options common to mutation operations. More...
#include <options.hxx>
Public Member Functions | |
CB_NODISCARD boost::optional< uint64_t > | cas () const |
Get cas. More... | |
T & | cas (uint64_t cas) |
Set current CAS. More... | |
CB_NODISCARD boost::optional< durability_level > | durability () const |
Get Durability. More... | |
T & | durability (durability_level level) |
Set durability. More... | |
Public Member Functions inherited from couchbase::common_options< T > | |
CB_NODISCARD boost::optional< std::chrono::microseconds > | timeout () const |
get timeout More... | |
template<typename R > | |
T & | timeout (R timeout) |
Set timeout. More... | |
Options common to mutation operations.
|
inline |
Get cas.
|
inline |
Set current CAS.
cas | the current CAS of the document. Mutation will fail with a result code of LCB_ERR_CAS_MISMATCH when this doesn't match the current CAS of the document. Ignored if 0. |
|
inline |
Get Durability.
|
inline |
Set durability.
level | Desired durability_level for the mutation operation. |