UNPKG

nestjs-aop

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/toss/nestjs-aop"> <img src="https://toss.tech/wp-content/uploads/2022/11/tech-article-nest-js-02.png" alt="Logo" height="200"> </a>

15 lines (11 loc) 279 B
import { Injectable } from '@nestjs/common'; @Injectable() export class CacheService { private readonly store = new Map(); get(key: string): any | undefined { return this.store.get(key); } set(key: string, value: any): void { this.store.set(key, value); } }