Class DecrementOptions
Inheritance
System.Object
DecrementOptions
Assembly: Couchbase.NetClient.dll
Syntax
public class DecrementOptions : object, ITimeoutOptions, IKeyValueOptions
Fields
|
Improve this Doc
View Source
DefaultReadOnly
Declaration
public static readonly DecrementOptions.ReadOnly DefaultReadOnly
Field Value
Methods
|
Improve this Doc
View Source
AsReadOnly()
Declaration
public DecrementOptions.ReadOnly AsReadOnly()
Returns
|
Improve this Doc
View Source
CancellationToken(CancellationToken)
Declaration
public DecrementOptions CancellationToken(CancellationToken token)
Parameters
Type |
Name |
Description |
CancellationToken |
token |
|
Returns
|
Improve this Doc
View Source
Cas(UInt64)
Declaration
public DecrementOptions Cas(ulong cas)
Parameters
Type |
Name |
Description |
System.UInt64 |
cas |
|
Returns
|
Improve this Doc
View Source
Deconstruct(out Nullable<UInt64>, out UInt64, out ReplicateTo, out PersistTo, out DurabilityLevel, out Nullable<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
|
Improve this Doc
View Source
Delta(UInt64)
The value to decrement by.
Declaration
public DecrementOptions Delta(ulong delta)
Parameters
Type |
Name |
Description |
System.UInt64 |
delta |
A value to decrement by..
|
Returns
|
Improve this Doc
View Source
Durability(DurabilityLevel)
The durability level required for persisting a JSON document across the cluster.
Declaration
public DecrementOptions Durability(DurabilityLevel durabilityLevel)
Parameters
Type |
Name |
Description |
DurabilityLevel |
durabilityLevel |
The Couchbase.KeyValue.DecrementOptions.DurabilityLevel required for persistance.
|
Returns
|
Improve this Doc
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
|
Improve this Doc
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
|
Improve this Doc
View Source
Initial(UInt64)
The initial value to start from.
Declaration
public DecrementOptions Initial(ulong initial)
Parameters
Type |
Name |
Description |
System.UInt64 |
initial |
A inital value.
|
Returns
|
Improve this Doc
View Source
RequestSpan(IRequestSpan)
Declaration
public DecrementOptions RequestSpan(IRequestSpan span)
Parameters
Returns
|
Improve this Doc
View Source
RetryStrategy(IRetryStrategy)
Declaration
public DecrementOptions RetryStrategy(IRetryStrategy retryStrategy)
Parameters
Returns
|
Improve this Doc
View Source
Timeout(TimeSpan)
The time in which the operation will timeout if it does not complete.
Declaration
public DecrementOptions Timeout(TimeSpan timeout)
Parameters
Type |
Name |
Description |
TimeSpan |
timeout |
|
Returns