Class DecrementOptions
Inheritance
DecrementOptions
Assembly: Couchbase.NetClient.dll
Syntax
public class DecrementOptions
Fields
|
Edit this page
View Source
DefaultReadOnly
Declaration
public static readonly DecrementOptions.ReadOnly DefaultReadOnly
Field Value
Methods
|
Edit this page
View Source
AsReadOnly()
Declaration
public DecrementOptions.ReadOnly AsReadOnly()
Returns
|
Edit this page
View Source
CancellationToken(CancellationToken)
Declaration
public DecrementOptions CancellationToken(CancellationToken token)
Parameters
Returns
|
Edit this page
View Source
Cas(ulong)
Declaration
[Obsolete("CAS is not supported by the server for the Increment operation.")]
public DecrementOptions Cas(ulong cas)
Parameters
Type |
Name |
Description |
ulong |
cas |
|
Returns
|
Edit this page
View Source
Deconstruct(out ulong?, out ulong, out ReplicateTo, out PersistTo, out DurabilityLevel, out TimeSpan?, out CancellationToken, out TimeSpan, out IRequestSpan?, out IRetryStrategy?)
Declaration
public void Deconstruct(out ulong? initial, out ulong delta, out ReplicateTo replicateTo, out PersistTo persistTo, out DurabilityLevel durabilityLevel, out TimeSpan? timeout, out CancellationToken token, out TimeSpan expiry, out IRequestSpan? requestSpan, out IRetryStrategy? retryStrategy)
Parameters
|
Edit this page
View Source
Delta(ulong)
The value to decrement by.
Declaration
public DecrementOptions Delta(ulong delta)
Parameters
Type |
Name |
Description |
ulong |
delta |
A ulong value to decrement by..
|
Returns
|
Edit this page
View Source
Durability(DurabilityLevel)
The durability level required for persisting a JSON document across the cluster.
Declaration
public DecrementOptions 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 DecrementOptions 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 DecrementOptions Expiry(TimeSpan expiry)
Parameters
Type |
Name |
Description |
TimeSpan |
expiry |
The time-to-live of the document.
|
Returns
|
Edit this page
View Source
Initial(ulong)
The initial value to start from.
Declaration
public DecrementOptions Initial(ulong initial)
Parameters
Type |
Name |
Description |
ulong |
initial |
A ulong inital value.
|
Returns
|
Edit this page
View Source
RequestSpan(IRequestSpan)
Declaration
public DecrementOptions RequestSpan(IRequestSpan span)
Parameters
Returns
|
Edit this page
View Source
RetryStrategy(IRetryStrategy)
Declaration
public DecrementOptions 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 DecrementOptions Timeout(TimeSpan timeout)
Parameters
Returns