declare class Cache { private _driver; constructor(); provider(): string; /** * The 'driver' method is used to pick a driver for the cache * * @param {string} driver 'db' | 'memory' | 'redis' * @returns {this} this */ driver(driver: "db" | "memory" | "redis"): this; /** * The 'all' method is used get all cache * * @returns {Promise} array */ all(): Promise; /** * The 'exists' method is used get all cache * * @param {string} key * @returns {Promise} array */ exists(key: string): Promise; /** * The 'get' method is used get cache by key * @param {string} key * @returns {any} any */ get(key: string): Promise; /** * The 'set' method is used set the cache * * @param {string} key * @param {unknown} value * @param {number} ms * @returns {Promise} void */ set(key: string, value: unknown, ms: number): Promise; /** * The 'clear' method is used clear all cache * * @returns {Promise} void */ clear(): Promise; /** * The 'clear' method is used delete cache by key * * @returns {Promise} void */ delete(key: string): Promise; private _chooseDriver; } declare const cacheInstance: Cache; export { cacheInstance as Cache, Cache as TCache }; export default cacheInstance;