UNPKG

@dazejs/framework

Version:

Daze.js - A powerful web framework for Node.js

18 lines (17 loc) 562 B
import { CacheStore } from './store'; type StoreType = 'redis' | 'memory'; declare const Cache_base: new () => Pick<CacheStore, keyof CacheStore>; export declare class Cache extends Cache_base { private stores; private defaultStore?; private defaultConnection?; constructor(); get proxy(): ProxyHandler<this>; store(store?: StoreType, connection?: string): CacheStore; private getDefaultStore; private getDefaultRedisConnection; private createMemoryStore; private createFsStore; private createRedisStore; } export {};