Skip to content

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 ParameterDefault typeDescription
T extends StoreConfigRecordStoreConfigRecordStore-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.

Released under the MIT License.