import { GenericObject } from "@mongez/reinforcements"; import { CacheConfigurations, CacheDriver, DriverClass } from "./types"; export declare class CacheManager implements CacheDriver { /** * Cache Driver */ currentDriver: CacheDriver; /** * Loaded drivers */ loadedDrivers: Record>; /** * Configurations list */ protected configurations: CacheConfigurations; /** * {@inheritdoc} */ name: string; /** * {@inheritdoc} */ get client(): any; /** * Set the cache configurations */ setCacheConfigurations(configurations: CacheConfigurations): void; /** * Use the given driver */ use(driver: string | CacheDriver): Promise; /** * {@inheritdoc} */ get(key: string): Promise; /** * {@inheritdoc} */ set(key: string, value: any, ttl?: number): Promise; /** * {@inheritdoc} */ remove(key: string): Promise; /** * {@inheritdoc} */ removeNamespace(namespace: string): Promise; /** * {@inheritdoc} */ flush(): Promise; /** * {@inheritdoc} */ connect(): Promise; /** * {@inheritdoc} */ parseKey(key: string | GenericObject): string; /** * {@inheritdoc} */ get options(): any; /** * {@inheritdoc} */ setOptions(options: GenericObject): any; /** * Get an instance of the cache driver */ driver(driverName: string): Promise>; /** * Initialize the cache manager and pick the default driver */ init(): Promise; /** * Load the given cache driver name */ load(driver: string): Promise>; /** * Register and bind a driver */ registerDriver(driverName: string, driverClass: DriverClass): void; } export declare const cache: CacheManager; //# sourceMappingURL=cache-manager.d.ts.map