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