mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-13 18:42:49 +00:00
修复方法缓存过期时间无效
This commit is contained in:
parent
c1d54feae0
commit
20be2d3257
@ -6,7 +6,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alicloud/pop-core": "^1.7.12",
|
"@alicloud/pop-core": "^1.7.12",
|
||||||
"@cool-midway/cloud": "^6.0.0",
|
"@cool-midway/cloud": "^6.0.0",
|
||||||
"@cool-midway/core": "^6.0.4",
|
"@cool-midway/core": "^6.0.6",
|
||||||
"@cool-midway/file": "^6.0.1",
|
"@cool-midway/file": "^6.0.1",
|
||||||
"@cool-midway/iot": "^6.0.0",
|
"@cool-midway/iot": "^6.0.0",
|
||||||
"@cool-midway/pay": "^6.0.0",
|
"@cool-midway/pay": "^6.0.0",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cool-midway/core",
|
"name": "@cool-midway/core",
|
||||||
"version": "6.0.5",
|
"version": "6.0.6",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "index.d.ts",
|
"typings": "index.d.ts",
|
||||||
|
|||||||
@ -57,7 +57,7 @@ export class CoolDecorator {
|
|||||||
// 执行原始方法
|
// 执行原始方法
|
||||||
data = await joinPoint.proceed(...joinPoint.args);
|
data = await joinPoint.proceed(...joinPoint.args);
|
||||||
await this.cacheManager.set(key, JSON.stringify(data), {
|
await this.cacheManager.set(key, JSON.stringify(data), {
|
||||||
ttl: options.metadata.ttl,
|
ttl: options.metadata,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cool-midway/core",
|
"name": "@cool-midway/core",
|
||||||
"version": "6.0.5",
|
"version": "6.0.6",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"typings": "index.d.ts",
|
"typings": "index.d.ts",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user