1 Star 2 Fork 0

MacXiang/egg-cache

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
app.d.ts 720 Bytes
一键复制 编辑 原始数据 按行查看 历史
MacXiang 提交于 2021-03-03 18:24 +08:00 . npm加入d.ts
import { Application } from 'egg';
import { oa, ns } from './itf';
export declare class TmkCache {
app: Application;
constructor(app: Application);
/** 获取全局缓存
* @param node string|string[] 节点
*/
getCache(node: undefined | ns | ns[], method?: number): Promise<oa>;
setCache(node: ns | ns[], data: any, push?: any): Promise<boolean>;
delCache(node: ns | ns[], pop?: any): Promise<any>;
getHistory(node: undefined | ns | ns[], method?: number): Promise<oa>;
setHistory(node: ns | ns[], data: any, push?: any): Promise<boolean>;
delHistory(node: ns | ns[], pop?: any): Promise<any>;
}
declare const _default: (app: Application) => void;
export default _default;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/MacXiang/egg-cache.git
git@gitee.com:MacXiang/egg-cache.git
MacXiang
egg-cache
egg-cache
master

搜索帮助