import { ICacheItem , IStorage } from "node-ts-cache" ; export class MemoryStorage implements IStorage { private memCache : any = { } ; constructor ( ) { } public async getItem ( key ) { return this . memCache [ key ] ; } public async setItem ( key , content ) { this . memCache [ key ] = content ; } public async clear ( ) { this . memCache = { } ; } }