Performs 'observe' on a given key to ensure that it's durability requirements with respect to persistence and replication are satified.
Namespace: Couchbase.CoreAssembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxObserveResponse Observe(
string key,
ulong cas,
bool deletion,
ReplicateTo replicateTo,
PersistTo persistTo
)
Function Observe (
key As String,
cas As ULong,
deletion As Boolean,
replicateTo As ReplicateTo,
persistTo As PersistTo
) As ObserveResponse
ObserveResponse Observe(
String^ key,
unsigned long long cas,
bool deletion,
ReplicateTo replicateTo,
PersistTo persistTo
)
abstract Observe :
key : string *
cas : uint64 *
deletion : bool *
replicateTo : ReplicateTo *
persistTo : PersistTo -> ObserveResponse
Parameters
- key
- Type: SystemString
The key to 'observe'. - cas
- Type: SystemUInt64
The 'Check and Set' or CAS value for the key. - deletion
- Type: SystemBoolean
True if the operation performed is a 'remove' operation. - replicateTo
- Type: CouchbaseReplicateTo
The durability requirement for replication. - persistTo
- Type: CouchbasePersistTo
The durability requirement for persistence.
Return Value
Type:
ObserveResponseAn
ObserveResponse value indicating if the durability requirement were or were not met.
See Also