Class InsertOptions
Inheritance
InsertOptions
Assembly: Couchbase.NetClient.dll
Syntax
public class InsertOptions
Fields
|
Edit this page
View Source
DefaultReadOnly
Declaration
public static readonly InsertOptions.ReadOnly DefaultReadOnly
Field Value
Methods
|
Edit this page
View Source
AsReadOnly()
Declaration
public InsertOptions.ReadOnly AsReadOnly()
Returns
|
Edit this page
View Source
CancellationToken(CancellationToken)
Declaration
public InsertOptions CancellationToken(CancellationToken token)
Parameters
Returns
|
Edit this page
View Source
Deconstruct(out TimeSpan, out ReplicateTo, out PersistTo, out DurabilityLevel, out TimeSpan?, out CancellationToken, out ITypeTranscoder?, out IRetryStrategy?, out IRequestSpan?)
Declaration
public void Deconstruct(out TimeSpan expiry, out ReplicateTo replicateTo, out PersistTo persistTo, out DurabilityLevel durabilityLevel, out TimeSpan? timeout, out CancellationToken token, out ITypeTranscoder? transcoder, out IRetryStrategy? retryStrategy, out IRequestSpan? requestSpan)
Parameters
|
Edit this page
View Source
Durability(DurabilityLevel)
The durability level required for persisting a JSON document across the cluster.
Declaration
public InsertOptions Durability(DurabilityLevel durabilityLevel)
Parameters
Returns
|
Edit this page
View Source
Durability(PersistTo, ReplicateTo)
The durability level required for persisting a JSON document across the cluster.
Declaration
public InsertOptions Durability(PersistTo persistTo, ReplicateTo replicateTo)
Parameters
Type |
Name |
Description |
PersistTo |
persistTo |
The durability requirement for persistence.
|
ReplicateTo |
replicateTo |
The durability requirement for replication.
|
Returns
|
Edit this page
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 InsertOptions Expiry(TimeSpan expiry)
Parameters
Type |
Name |
Description |
TimeSpan |
expiry |
The time-to-live of the document.
|
Returns
|
Edit this page
View Source
RequestSpan(IRequestSpan)
Declaration
public InsertOptions RequestSpan(IRequestSpan span)
Parameters
Returns
|
Edit this page
View Source
RetryStrategy(IRetryStrategy)
Declaration
public InsertOptions RetryStrategy(IRetryStrategy retryStrategy)
Parameters
Returns
|
Edit this page
View Source
Timeout(TimeSpan)
The time in which the operation will timeout if it does not complete.
Declaration
public InsertOptions Timeout(TimeSpan timeout)
Parameters
Returns
|
Edit this page
View Source
Transcoder(ITypeTranscoder?)
Declaration
public InsertOptions Transcoder(ITypeTranscoder? transcoder)
Parameters
Returns