export class CacheService { private cacheMap: Map constructor() { this.cacheMap = new Map(); } public Get(key: Key): Value { return this.cacheMap.get(key) } public Set(key: Key, value: Value) { this.cacheMap.set(key, value); } public Invalidate(key: Key): boolean { return this.cacheMap.delete(key); } }