UNPKG

@restorecommerce/chassis-srv

Version:
17 lines (16 loc) 577 B
import { Logger } from 'winston'; /** * Register a cache provider. * Providers need to be compatible to the node-cache-manager module. * https://github.com/BryanDonovan/node-cache-manager * @param {string} name cache provider identifier * @param {constructor} provider cache store constructor */ export declare const register: (name: string, provider: any) => void; /** * Get a new cache instance. * @param {Object} config Cache configuration * @param [Logger] logger * @return Cache instance */ export declare const get: (config: any, logger: Logger) => any;