Performs 'observe' on a given key to ensure that it's durability requirements with respect to persistence and replication are satified.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic ObserveResponse Observe(
string key,
ulong cas,
bool deletion,
ReplicateTo replicateTo,
PersistTo persistTo
)
public ObserveResponse Observe(
string key,
ulong cas,
bool deletion,
ReplicateTo replicateTo,
PersistTo persistTo
)
Public Function Observe (
key As String,
cas As ULong,
deletion As Boolean,
replicateTo As ReplicateTo,
persistTo As PersistTo
) As ObserveResponse
Public Function Observe (
key As String,
cas As ULong,
deletion As Boolean,
replicateTo As ReplicateTo,
persistTo As PersistTo
) As ObserveResponse
public:
virtual ObserveResponse Observe(
String^ key,
unsigned long long cas,
bool deletion,
ReplicateTo replicateTo,
PersistTo persistTo
) sealed
public:
virtual ObserveResponse Observe(
String^ key,
unsigned long long cas,
bool deletion,
ReplicateTo replicateTo,
PersistTo persistTo
) sealed
abstract Observe :
key : string *
cas : uint64 *
deletion : bool *
replicateTo : ReplicateTo *
persistTo : PersistTo -> ObserveResponse
override Observe :
key : string *
cas : uint64 *
deletion : bool *
replicateTo : ReplicateTo *
persistTo : PersistTo -> ObserveResponse
abstract Observe :
key : string *
cas : uint64 *
deletion : bool *
replicateTo : ReplicateTo *
persistTo : PersistTo -> ObserveResponse
override Observe :
key : string *
cas : uint64 *
deletion : bool *
replicateTo : ReplicateTo *
persistTo : PersistTo -> ObserveResponse
Parameters
- key
- Type: System.String
The key to 'observe'.
- cas
- Type: System.UInt64
The 'Check and Set' or CAS value for the key.
- deletion
- Type: System.Boolean
True if the operation performed is a 'remove' operation.
- replicateTo
- Type: Couchbase.ReplicateTo
The durability requirement for replication.
- persistTo
- Type: Couchbase.PersistTo
The durability requirement for persistence.
Return Value
Type:
ObserveResponseA
ObserveResponse value indicating if the durability requirement were or were not met.
Implements
IBucket.Observe(String, UInt64, Boolean, ReplicateTo, PersistTo)
See Also