thinkjs / think-html-cache

html-cache middleware for ThinkJS 2.0
MIT License
6 stars 1 forks source link

roles的数组里第一个值代表的什么意思? #2

Open Tauleos opened 7 years ago

Tauleos commented 7 years ago

如题。。 rules

cache rules, key is [module]/[controller]/[action].

can get paramters in rule: 'index_{page}' // get page paramter from GET 'index_{:module}' // get module value 'index_{:controller}' //get controller value 'index_{:action}' //get action value 'index_{cookie.xxx}' //get value from cookie 我只想缓存一个页面的话。需要怎么配置? 这些配置都有啥作用呢?