diff --git a/src/modules/demo/service/cache.ts b/src/modules/demo/service/cache.ts index 01d3de8..4a77f10 100644 --- a/src/modules/demo/service/cache.ts +++ b/src/modules/demo/service/cache.ts @@ -7,7 +7,7 @@ import { CoolCache } from '@cool-midway/core'; @Provide() export class DemoCacheService { // 数据缓存5秒 - @CoolCache(5) + @CoolCache(5000) async get() { console.log('执行方法'); return {