Class LookupInOptions
Inheritance
LookupInOptions
Assembly: Couchbase.NetClient.dll
Syntax
public class LookupInOptions
Fields
|
Edit this page
View Source
DefaultReadOnly
Declaration
public static readonly LookupInOptions.ReadOnly DefaultReadOnly
Field Value
Methods
|
Edit this page
View Source
AccessDeleted(bool)
Declaration
public LookupInOptions AccessDeleted(bool accessDeleted)
Parameters
Type |
Name |
Description |
bool |
accessDeleted |
|
Returns
|
Edit this page
View Source
AsReadOnly()
Declaration
public LookupInOptions.ReadOnly AsReadOnly()
Returns
|
Edit this page
View Source
CancellationToken(CancellationToken)
Declaration
public LookupInOptions CancellationToken(CancellationToken token)
Parameters
Returns
|
Edit this page
View Source
Deconstruct(out TimeSpan?, out CancellationToken, out bool, out ITypeSerializer?, out ITypeTranscoder?, out bool, out IRetryStrategy?, out IRequestSpan?)
Declaration
public void Deconstruct(out TimeSpan? timeout, out CancellationToken token, out bool expiry, out ITypeSerializer? serializer, out ITypeTranscoder? transcoder, out bool accessDeleted, out IRetryStrategy? retryStrategy, out IRequestSpan? requestSpan)
Parameters
|
Edit this page
View Source
Expiry(bool)
Sets the expiration for a document. By default, documents never expire - if overridden the value must be less than 50 years.
Declaration
public LookupInOptions Expiry(bool expiry)
Parameters
Type |
Name |
Description |
bool |
expiry |
The time-to-live of the document.
|
Returns
|
Edit this page
View Source
RequestSpan(IRequestSpan)
Inject an external span which will the be the parent span of the internal span(s).
Declaration
public LookupInOptions RequestSpan(IRequestSpan span)
Parameters
Returns
|
Edit this page
View Source
RetryStrategy(IRetryStrategy)
Declaration
public LookupInOptions RetryStrategy(IRetryStrategy retryStrategy)
Parameters
Returns
|
Edit this page
View Source
Serializer(ITypeSerializer?)
Declaration
public LookupInOptions Serializer(ITypeSerializer? serializer)
Parameters
Returns
|
Edit this page
View Source
Timeout(TimeSpan?)
The time in which the operation will timeout if it does not complete.
Declaration
public LookupInOptions Timeout(TimeSpan? timeout)
Parameters
Returns
|
Edit this page
View Source
Transcoder(ITypeTranscoder?)
Only used internally for full doc gets which also need the expiry. Should not be used for JSON-based LookupIn ops.
Not exposed for public consumption.
Declaration
public LookupInOptions Transcoder(ITypeTranscoder? transcoder)
Parameters
Returns