File

libs/caching/src/lib/config.ts

Description

Configuration for the HelgolandCachingModule

Index

Properties

Properties

cachingDurationInMilliseconds
cachingDurationInMilliseconds: number
Type : number
Optional

Duration in milliseconds, how long equal request will be cached until refresh

getDataCacheActive
getDataCacheActive: boolean
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');

result-matching ""

    No results matching ""