Click or drag to resize
IBucketObserve Method
Performs 'observe' on a given key to ensure that it's durability requirements with respect to persistence and replication are satified.

Namespace: Couchbase.Core
Assembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
ObserveResponse Observe(
	string key,
	ulong cas,
	bool deletion,
	ReplicateTo replicateTo,
	PersistTo persistTo
)

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: ObserveResponse
An ObserveResponse value indicating if the durability requirement were or were not met.
See Also