UNPKG

ts-method-cache

Version:

Data method caching logic based on TypeScript decorators

7 lines (6 loc) 266 B
import { CacheType } from '../enum/cache-type.enum'; import { BaseCacheOptions } from '../interface/base-cache-options'; export declare function baseCacheDecorator<T extends BaseCacheOptions>( cacheType: CacheType, options?: T | string ): MethodDecorator;