File

src/ngx-cache-layer.interfaces.ts

Index

Properties

Properties

config
config: CacheServiceConfigInterface
Type : CacheServiceConfigInterface
items
items: any
Type : any
name
name: string
Type : string
export interface CacheLayerItem<T> {
  key: string;
  data: T;
}

export class CacheServiceConfigInterface {
  deleteOnExpire?: string = 'aggressive';
  cacheFlushInterval: number = 60 * 60 * 1000;
  maxAge: number = 15 * 60 * 1000;
  localStorage: boolean;
}

export interface CacheLayerInterface {
  name: string;
  config?: CacheServiceConfigInterface;
  items?: any;
}

results matching ""

    No results matching ""