UNPKG

1.05 kBTypeScriptView Raw
1import { DynamicModule } from '../interfaces';
2import { CacheModuleAsyncOptions, CacheModuleOptions } from './interfaces/cache-module.interface';
3/**
4 * Module that provides Nest cache-manager.
5 *
6 * @see [Caching](https://docs.nestjs.com/techniques/caching)
7 *
8 * @publicApi
9 */
10export declare class CacheModule {
11 /**
12 * Configure the cache manager statically.
13 *
14 * @param options options to configure the cache manager
15 *
16 * @see [Customize caching](https://docs.nestjs.com/techniques/caching#customize-caching)
17 */
18 static register(options?: CacheModuleOptions): DynamicModule;
19 /**
20 * Configure the cache manager dynamically.
21 *
22 * @param options method for dynamically supplying cache manager configuration
23 * options
24 *
25 * @see [Async configuration](https://docs.nestjs.com/techniques/caching#async-configuration)
26 */
27 static registerAsync(options: CacheModuleAsyncOptions): DynamicModule;
28 private static createAsyncProviders;
29 private static createAsyncOptionsProvider;
30}