This commit is contained in:
啊平 2021-02-06 13:51:55 +08:00
parent b8f660d1cd
commit 36bdaf8739

View File

@ -9,7 +9,8 @@ export class HomeController {
@Get('/1')
async home(@Query() data: string) {
console.log(await this.coolCache.set('a', data, 10000))
//console.log(this.coolCache)
await this.coolCache.set('a', data);
return await this.coolCache.get('a');
}
}