feat: add memory cache to boost performance (#2620)

* feat: add memory cache to boost performance

* fix: tests

* fix: logging

* fix: missing commented stuff
This commit is contained in:
Jérémy M
2023-11-21 18:29:31 +01:00
committed by GitHub
parent 74e0122294
commit dd125ddfcc
27 changed files with 458 additions and 17 deletions
@@ -0,0 +1,19 @@
import { Test, TestingModule } from '@nestjs/testing';
import { MemoryStorageService } from './memory-storage.service';
describe('MemoryStorageService', () => {
let service: MemoryStorageService<any>;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [MemoryStorageService],
}).compile();
service = module.get<MemoryStorageService<any>>(MemoryStorageService);
});
it('should be defined', () => {
expect(service).toBeDefined();
});
});