Class GetReplicaStrategyFromIndexOptions
Optional parameters for FromIndex(ReplicaIndex, GetReplicaStrategyFromIndexOptions?).
Inherited Members
Namespace: Couchbase.KeyValue
Assembly: Couchbase.NetClient.dll
Syntax
[InterfaceStability(Level.Uncommitted)]
public class GetReplicaStrategyFromIndexOptions
Constructors
View SourceGetReplicaStrategyFromIndexOptions()
Declaration
public GetReplicaStrategyFromIndexOptions()
Methods
View SourceWrap(bool)
Reads the next available replica when the requested one does not exist or is not available. Without wrap the operation fails instead.
Declaration
public GetReplicaStrategyFromIndexOptions Wrap(bool wrap = true)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | wrap | True to move to the next available replica. |
Returns
| Type | Description |
|---|---|
| GetReplicaStrategyFromIndexOptions | A GetReplicaStrategyFromIndexOptions instance for chaining. |