Class IngestOptions
Inheritance
IngestOptions
Assembly: Couchbase.NetClient.dll
Syntax
public class IngestOptions
Constructors
|
Edit this page
View Source
IngestOptions()
Declaration
Methods
|
Edit this page
View Source
CancellationToken(CancellationToken)
An optional cancellation token to use for the query.
Declaration
public IngestOptions CancellationToken(CancellationToken token)
Parameters
Returns
|
Edit this page
View Source
Expiry(TimeSpan)
The lifetime of the documents ingested by Couchbase. Overrides the default of zero (0) or infinite lifespan.
Declaration
public IngestOptions Expiry(TimeSpan expiry)
Parameters
Returns
|
Edit this page
View Source
IdGenerator(Func<dynamic, string>)
Overrides the default Guid based key generator.
Declaration
public IngestOptions IdGenerator(Func<dynamic, string> idGenerator)
Parameters
Type |
Name |
Description |
Func<dynamic, string> |
idGenerator |
A Func{string} that generates a valid Couchbase server key.
|
Returns
|
Edit this page
View Source
IngestMethod(IngestMethod)
The ingest method to use when ingesting into Couchbase. Insert, Replace and Upsert are supported.
Declaration
public IngestOptions IngestMethod(IngestMethod ingestMethod)
Parameters
Returns
|
Edit this page
View Source
Timeout(TimeSpan)
The maximum time for the query to run. Overrides the default timeout of 75s.
Declaration
public IngestOptions Timeout(TimeSpan timeout)
Parameters
Returns