import { RedisClient } from 'redis'; export declare class RedisJson { client: RedisClient; jsonCache: any; ONE_SECOND: number; ONE_HOUR: number; constructor(redisUrl: string); private response; setter(key: string, obj: any): Promise; /** * Help rewrite the object in the cache for a particular key * @param {string} key * @param {any} obj * @returns Promise */ rewriter(key: string, obj: any): Promise; getter(key: string): Promise; /** * Allows you to select specific keys from the object saved in the cache * @param {string} key * @param {string[]} ...select * @returns Promise */ select(key: string, ...select: string[]): Promise; deleteKey(key: string): Promise; /** * Clears the cache * @returns Promise */ flushALl(): Promise; } interface Response { status: boolean; data: any; error?: any; } export {};