UNPKG

@wigetapp/cache

Version:

wxs 微信系开发脚手架之缓存

18 lines (17 loc) 479 B
export interface RedisConfig { host: string; port: number; username?: string; password?: string; protocol?: string; db?: number; ttl?: number; } export declare class CacheConfigKit { private static configs; private static currentConfig; static devMode: boolean; static putConfig(config: RedisConfig, appId: string): void; static setCurrentConfig(appId: string): void; static getCurrentConfig(): RedisConfig; }