1 | import { DynamicModule } from '../interfaces';
|
2 | import { 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 | */
|
10 | export 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<StoreConfig extends Record<any, any> = Record<string, any>>(options?: CacheModuleOptions<StoreConfig>): 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<StoreConfig extends Record<any, any> = Record<string, any>>(options: CacheModuleAsyncOptions<StoreConfig>): DynamicModule;
|
28 | private static createAsyncProviders;
|
29 | private static createAsyncOptionsProvider;
|
30 | }
|