mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-18 11:28:10 +00:00
缓存
This commit is contained in:
parent
23af1a379c
commit
1c359ec4f5
@ -1,5 +1,5 @@
|
|||||||
import { Inject, Provide } from '@midwayjs/decorator';
|
import { Inject, Provide } from '@midwayjs/decorator';
|
||||||
import { BaseService, CoolPlugin, Cache } from 'midwayjs-cool-core';
|
import { BaseService, CoolPlugin } from 'midwayjs-cool-core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 插件
|
* 插件
|
||||||
@ -12,7 +12,6 @@ export class BasePluginInfoService extends BaseService {
|
|||||||
/**
|
/**
|
||||||
* 列表
|
* 列表
|
||||||
*/
|
*/
|
||||||
@Cache(3000)
|
|
||||||
async list(keyWord) {
|
async list(keyWord) {
|
||||||
return this.coolPlugin.list(keyWord);
|
return this.coolPlugin.list(keyWord);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user