import Client from './client'; import { IRedisBatch } from './types'; export default class Batch implements IRedisBatch { private _client; private _batch; /** * Constructor */ constructor(client: Client); /** * Is it disposed */ readonly disposed: boolean; /** * Key exists */ exists(key: string): void; /** * Get a key value */ get(key: string): void; /** * Get a hash set */ hgetall(key: string): void; /** * Get a set */ smembers(key: string): void; /** * Execute a batch of commands */ exec(): Promise; /** * Check to make sure this batch is still open */ private _checkDisposed(); }