import { DI } from '@aurelia/kernel'; import { ICacheItem } from './cach-service'; import { MemoryStorage } from './storage-memory'; export interface ICacheStorage { delete: (key: string) => void; /** Returns true if there's a value associated with the given key */ has: (key: string) => boolean; set: (key: string, value: ICacheItem) => void; get: (key: string) => ICacheItem | undefined; clear: () => void; } export const ICacheStorage = /*@__PURE__*/DI.createInterface(x => x.singleton(MemoryStorage));