Interface ReplaceOptions

interface ReplaceOptions {
    cas?: CasInput;
    durabilityLevel?: DurabilityLevel;
    durabilityPersistTo?: number;
    durabilityReplicateTo?: number;
    expiry?: number;
    preserveExpiry?: boolean;
    timeout?: number;
    transcoder?: Transcoder;
}

Properties

cas?: CasInput

If specified, indicates that operation should be failed if the CAS has changed from this value, indicating that the document has changed.

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

Specifies the expiry time for this document, specified in seconds.

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.