feat(core): first attempt to init script standard (#8224)

- lazy load
- rate limit per path
- init .debug.json support
- docs
- maintainer
- radar
This commit is contained in:
NeverBehave
2021-09-22 05:41:00 -07:00
committed by GitHub
parent d77a039f05
commit 0792f7ba25
51 changed files with 737 additions and 331 deletions

View File

@@ -134,8 +134,8 @@ describe('cache', () => {
it('redis with quit', async () => {
process.env.CACHE_TYPE = 'redis';
server = require('../../lib/index');
const client = require('../../lib/app').context.cache.client;
await client.quit();
const { redisClient } = require('../../lib/app').context.cache.clients;
await redisClient.quit();
const request = supertest(server);
const response1 = await request.get('/test/cache');