|
Couchbase C++ SDK 1.5.0 (rev. 380784c)
|
Selects the replica that get_replica() reads from. More...
#include <couchbase/get_replica_strategy.hxx>
Classes | |
| struct | built |
| Immutable value object representing a consistent strategy. More... | |
Public Member Functions | |
| auto | build () const -> built |
| Returns the strategy as an immutable value. | |
Static Public Member Functions | |
| static auto | from_index (replica_index index, const get_replica_strategy_from_index_options &options={}) -> get_replica_strategy |
| Read from the replica at the given index. | |
Selects the replica that get_replica() reads from.
|
inlinenodiscard |
Returns the strategy as an immutable value.
|
inlinestaticnodiscard |
Read from the replica at the given index.
| index | the replica to read from |
| options | the custom options |