import { Cache, Memory } from "./Cache"; import { Registry } from "./Registry"; export const registry = new Registry(); registry.set('cache', () => { const memoryAdapter = new Memory(); const cacheProvider = new Cache(memoryAdapter); return cacheProvider; }) export class Services { public static get Cache(): Cache { return registry.get('cache'); } }