egg-catbox
Catbox plugin for egg framework.
Install
$ npm i egg-catbox --save
Usage
// {app_root}/config/plugin.jsexportscatbox = enable: true package: 'egg-catbox';
Configuration
// {app_root}/config/config.default.jsexportscatbox = ;
see config/config.default.js for more detail.
Example
// {app_root}/app/service/user.jsconst Service = Service; const segment = 'segment'; async { const id = 'id'; const key = id segment ; await appcatbox; } async { const key = id segment ; const result = await appcatbox; return result ? resultitem : null; } async { const key = id segment ; await appcatbox; } moduleexports = UserService;
Questions & Suggestions
Please open an issue here.