couchbase
    Preparing search index...

    Interface UpsertOptions

    interface UpsertOptions {
        durabilityLevel?: DurabilityLevel;
        durabilityPersistTo?: number;
        durabilityReplicateTo?: number;
        expiry?: number | Date;
        preserveExpiry?: boolean;
        timeout?: number;
        transcoder?: Transcoder;
    }
    Index

    Properties

    durabilityLevel?: DurabilityLevel

    Specifies the level of synchronous durability for this operation.

    durabilityPersistTo?: number

    Specifies the number of nodes this operation should be persisted to before it is considered successful. Note that this option is mutually exclusive of durabilityLevel.

    durabilityReplicateTo?: number

    Specifies the number of nodes this operation should be replicated to before it is considered successful. Note that this option is mutually exclusive of durabilityLevel.

    expiry?: number | Date

    Specifies the expiry time for the document.

    The expiry can be provided as:

    • A number of seconds relative to the current time.
    • A Date object for an absolute expiry time.

    IMPORTANT: To use a Unix timestamp for expiry, construct a Date from it ( new Date(UNIX_TIMESTAMP * 1000) ).

    preserveExpiry?: boolean

    Specifies that any existing expiry on the document should be preserved.

    timeout?: number

    The timeout for this operation, represented in milliseconds.

    transcoder?: Transcoder

    Specifies an explicit transcoder to use for this specific operation.