import { Injectable } from '@angular/core' ; import { CapabilitiesResponseWrapper } from './capabilities-response-wrapper' ; export interface CapabilityCacheList { [ key ] : CapabilitiesResponseWrapper ; } @ Injectable ( { providedIn : 'root' } ) export class HsCapabilityCacheService { cache : CapabilityCacheList = { } ; constructor ( ) { } set ( url , wrap ) { this . cache [ url ] = wrap ; } get ( url ) { return this . cache [ url ] ; } }