Interface: CacheOptionsFactory<T>
Defined in: packages/cache/src/interfaces/cache-module.interface.ts:50
Factory interface for creating cache options.
Providers supplying configuration options for the Cache module must implement this interface when using useClass or useExisting.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T extends StoreConfigRecord | StoreConfigRecord | Store-specific configuration type. |
Methods
createCacheOptions()
ts
createCacheOptions():
| CacheOptions<T>
| Promise<CacheOptions<T>>;Defined in: packages/cache/src/interfaces/cache-module.interface.ts:58
Creates cache options.
Returns
| CacheOptions<T> | Promise<CacheOptions<T>>
Cache options or a Promise resolving to cache options.