Class MutateInOptions
Inheritance
MutateInOptions
Assembly: Couchbase.NetClient.dll
Syntax
public class MutateInOptions
Constructors
View Source
MutateInOptions()
Declaration
Fields
View Source
DefaultReadOnly
Declaration
public static readonly MutateInOptions.ReadOnly DefaultReadOnly
Field Value
Methods
View Source
AccessDeleted(bool)
Allows access to a deleted document's attributes section.
Only for internal diagnostic use only and is an unsupported feature.
Declaration
public MutateInOptions AccessDeleted(bool accessDeleted)
Parameters
| Type |
Name |
Description |
| bool |
accessDeleted |
|
Returns
View Source
AsReadOnly()
Declaration
public MutateInOptions.ReadOnly AsReadOnly()
Returns
View Source
CancellationToken(CancellationToken)
Declaration
public MutateInOptions CancellationToken(CancellationToken token)
Parameters
Returns
View Source
Cas(ulong)
Compare and Set value for optimistic locking of a document.
Declaration
public MutateInOptions Cas(ulong cas)
Parameters
| Type |
Name |
Description |
| ulong |
cas |
A ulong value returned by the server in a previous operation.
|
Returns
View Source
CreateAsDeleted(bool)
Declaration
public MutateInOptions CreateAsDeleted(bool createAsDeleted)
Parameters
| Type |
Name |
Description |
| bool |
createAsDeleted |
|
Returns
View Source
Deconstruct(out TimeSpan, out StoreSemantics, out ulong, out (PersistTo, ReplicateTo), out DurabilityLevel, out TimeSpan?, out CancellationToken, out ITypeSerializer?, out bool, out bool, out bool, out Flags?, out IRetryStrategy?, out IRequestSpan?, out bool)
Declaration
public void Deconstruct(out TimeSpan expiry, out StoreSemantics storeSemantics, out ulong cas, out (PersistTo, ReplicateTo) durability, out DurabilityLevel durabilityLevel, out TimeSpan? timeout, out CancellationToken token, out ITypeSerializer? serializer, out bool createAsDeleted, out bool reviveDocument, out bool accessDeleted, out Flags? flags, out IRetryStrategy? retryStrategy, out IRequestSpan? requestSpan, out bool preserveTtl)
Parameters
View Source
Deconstruct(out TimeSpan, out StoreSemantics, out ulong, out (PersistTo, ReplicateTo), out DurabilityLevel, out TimeSpan?, out CancellationToken, out ITypeSerializer?, out bool, out bool, out bool, out Flags?, out IRetryStrategy?, out IRequestSpan?, out bool, out ITypeTranscoder?)
Declaration
public void Deconstruct(out TimeSpan expiry, out StoreSemantics storeSemantics, out ulong cas, out (PersistTo, ReplicateTo) durability, out DurabilityLevel durabilityLevel, out TimeSpan? timeout, out CancellationToken token, out ITypeSerializer? serializer, out bool createAsDeleted, out bool reviveDocument, out bool accessDeleted, out Flags? flags, out IRetryStrategy? retryStrategy, out IRequestSpan? requestSpan, out bool preserveTtl, out ITypeTranscoder? transcoder)
Parameters
View Source
Durability(DurabilityLevel)
The durability level required for persisting a JSON document across the cluster.
Declaration
public MutateInOptions Durability(DurabilityLevel durabilityLevel)
Parameters
| Type |
Name |
Description |
| DurabilityLevel |
durabilityLevel |
The Couchbase.KeyValue.MutateInOptions.DurabilityLevel required for persistance.
|
Returns
View Source
Durability(PersistTo, ReplicateTo)
The durability level required for persisting a JSON document across the cluster.
Declaration
public MutateInOptions Durability(PersistTo persistTo, ReplicateTo replicateTo)
Parameters
| Type |
Name |
Description |
| PersistTo |
persistTo |
The durability requirement for persistence.
|
| ReplicateTo |
replicateTo |
The durability requirement for replication.
|
Returns
View Source
Expiry(TimeSpan)
Sets the expiration for a document. By default, documents never expire - if overridden the value must be less than 50 years.
Declaration
public MutateInOptions Expiry(TimeSpan expiry)
Parameters
| Type |
Name |
Description |
| TimeSpan |
expiry |
The time-to-live of the document.
|
Returns
View Source
PreserveTtl(bool)
Specifies whether an existing document's expiry should be preserved.
If true, and the document exists, its expiry will not be modified.Otherwise
the document's expiry is determined by Expiry(TimeSpan).
Declaration
public MutateInOptions PreserveTtl(bool preserveTtl)
Parameters
| Type |
Name |
Description |
| bool |
preserveTtl |
|
Returns
View Source
RequestSpan(IRequestSpan)
Inject an external span which will be the parent span of the internal span(s).
Declaration
public MutateInOptions RequestSpan(IRequestSpan span)
Parameters
Returns
View Source
RetryStrategy(IRetryStrategy)
Declaration
public MutateInOptions RetryStrategy(IRetryStrategy retryStrategy)
Parameters
Returns
View Source
ReviveDocument(bool)
Declaration
public MutateInOptions ReviveDocument(bool reviveDocument)
Parameters
| Type |
Name |
Description |
| bool |
reviveDocument |
|
Returns
View Source
Serializer(ITypeSerializer?)
Declaration
[Obsolete("Use Transcoder instead.")]
public MutateInOptions Serializer(ITypeSerializer? serializer)
Parameters
Returns
View Source
StoreSemantics(StoreSemantics)
StoreSemantics - the storage action
Replace - replace the document, fail if it doesn't exist
Upsert - replace the document or create it if it doesn't exist (0x01)
Insert - create document, fail if it exists(0x02)
Declaration
public MutateInOptions StoreSemantics(StoreSemantics storeSemantics)
Parameters
Returns
View Source
Timeout(TimeSpan)
The time in which the operation will timeout if it does not complete.
Declaration
public MutateInOptions Timeout(TimeSpan timeout)
Parameters
Returns
View Source
Transcoder(ITypeTranscoder?)
Declaration
public MutateInOptions Transcoder(ITypeTranscoder? transcoder)
Parameters
Returns