libs/caching/src/lib/config.ts
Configuration for the HelgolandCachingModule
Properties |
|
cachingDurationInMilliseconds |
cachingDurationInMilliseconds:
|
Type : number
|
Optional |
Duration in milliseconds, how long equal request will be cached until refresh |
getDataCacheActive |
getDataCacheActive:
|
Type : boolean
|
Optional |
Activates the getData cache |
import { InjectionToken } from '@angular/core';
/**
* Configuration for the HelgolandCachingModule
*/
export interface CacheConfig {
/**
* Duration in milliseconds, how long equal request will be cached until refresh
*/
cachingDurationInMilliseconds?: number;
/**
* Activates the getData cache
*/
getDataCacheActive?: boolean;
}
export const CacheConfigService = new InjectionToken<CacheConfig>('CacheConfigService');