UNPKG

651 BTypeScriptView Raw
1import Client from './client';
2export default class Batch {
3 private _client;
4 private _batch;
5 /**
6 * Constructor
7 */
8 constructor(client: Client);
9 /**
10 * Key exists
11 */
12 exists(key: string): Promise<void>;
13 /**
14 * Get a key value
15 */
16 get(key: string): Promise<void>;
17 /**
18 * Get a hash set
19 */
20 hgetall(key: string): Promise<void>;
21 /**
22 * Get a set
23 */
24 smembers(key: string): Promise<void>;
25 /**
26 * Execute a batch of commands
27 */
28 exec(): Promise<any[]>;
29 /**
30 * Check to make sure this batch is still open
31 */
32 private _checkDisposed();
33}