|
Couchbase C++ SDK 1.4.0 (rev. 59aa900)
|
Options for collection#decrement(). More...
#include <couchbase/decrement_options.hxx>

Classes | |
| struct | built |
| Immutable value object representing consistent options. More... | |
Public Member Functions | |
| auto | build () const -> built |
| Validates options and returns them as an immutable value. | |
| auto | expiry (std::chrono::seconds duration) -> decrement_options & |
| Sets the expiry for the document. | |
| auto | expiry (std::chrono::system_clock::time_point time_point) -> decrement_options & |
| Sets the expiry for the document. | |
| auto | delta (std::uint64_t delta) -> decrement_options & |
| The amount of which the document value should be decremented. | |
| auto | initial (std::uint64_t value) -> decrement_options & |
| The initial value that should be used if the document has not been created yet. | |
| Public Member Functions inherited from common_durability_options< decrement_options > | |
| auto | durability (durability_level level) -> decrement_options & |
| Allows to customize the enhanced durability requirements for this operation. | |
| Public Member Functions inherited from common_options< decrement_options > | |
| auto | timeout (const std::chrono::milliseconds timeout) -> decrement_options & |
| Specifies a custom per-operation timeout. | |
| auto | retry_strategy (const std::shared_ptr< retry_strategy > strategy) -> decrement_options & |
Specifies a custom couchbase::retry_strategy for this operation. | |
| auto | parent_span (std::shared_ptr< tracing::request_span > span) -> decrement_options & |
Additional Inherited Members | |
| Protected Member Functions inherited from common_durability_options< decrement_options > | |
| auto | build_common_durability_options () const -> built |
| Protected Member Functions inherited from common_options< decrement_options > | |
| auto | build_common_options () const -> built |
| auto | self () -> decrement_options & |
| Allows to return the right options builder instance for child implementations. | |
Options for collection#decrement().
|
inlinenodiscard |
Validates options and returns them as an immutable value.
| std::system_error | with code errc::common::invalid_argument if the options are not valid |
|
inline |
The amount of which the document value should be decremented.
| delta | the amount to decrement. |
|
inline |
Sets the expiry for the document.
By default the document will never expire.
The duration must be less than 50 years. For expiry further in the future, use expiry(std::chrono::system_clock::time_point).
| duration | the duration after which the document will expire (zero duration means never expire). |
|
inline |
Sets the expiry for the document.
By default the document will never expire.
| time_point | the point in time when the document will expire (epoch second zero means never expire). |
|
inline |
The initial value that should be used if the document has not been created yet.
| value | the initial value to use. |