thinkjs / thinkjs

Use full ES2015+ features to develop Node.js applications, Support TypeScript.
https://thinkjs.org/
MIT License
5.31k stars 617 forks source link

请问 cache 只能在controller中使用吗,在其他模块中如何使用 #979

Closed mindops closed 6 years ago

mindops commented 6 years ago

DESC

ENV

OS Platform:

Node.js Version:

ThinkJS Version:

code

// your code here

error message

// your error message here

more description

// your detail description

lushijie commented 6 years ago

cache 作为 extend 被注入到了 controller, context, think 上, 可以使用 think.cache,代码

mindops commented 6 years ago

好的,谢谢