export class CacheService { private storage = { } ; static _ ( ) { return new CacheService ( ) ; } public set ( key , value ) { this . storage [ key ] = value ; return this ; } public get ( key ) { if ( typeof this . storage [ key ] === 'undefined' ) { return ; } return this . storage [ key ] ; } }