ottoman
Version:
Ottoman Couchbase ODM
16 lines (15 loc) • 624 B
TypeScript
import { TransactionAttemptContext } from 'couchbase';
interface StoreOptions {
cas?: string;
transcoder?: any;
timeout?: number;
maxExpiry?: number;
expiry?: number;
transactionContext?: TransactionAttemptContext;
}
/**
* Stores a Document: Updates a document if CAS value is defined, otherwise it inserts a new document.
* CAS is a value representing the current state of an item/document in the Couchbase Server. Each modification of the document changes it's CAS value.
*/
export declare const store: (key: any, data: any, options: StoreOptions, collection: any) => Promise<any>;
export {};