import { ICache } from "../../services" ; export class TestCache implements ICache { private readonly dictionary = new Map < string , any > ( ) ; async get < T > ( key ) { return Promise . resolve ( this . dictionary . get ( key ) ) ; } async set < T > ( key , value ) { this . dictionary . set ( key , value ) ; return Promise . resolve ( ) ; } async delete ( key ) { return Promise . resolve ( this . dictionary . delete ( key ) ) ; } }