@chandre/egg-redis-cache
v1.0.10
Published
redis;cache,hash
Downloads
8
Readme
@chandre/egg-redis-cache
Install
$ npm i @chandre/egg-redis-cache --save
Usage
// {app_root}/config/plugin.js
exports.redisCache = {
enable: true,
package: '@chandre/egg-redis-cache',
};
Configuration
// {app_root}/config/config.default.js
exports.redisCache = {
app: true,
agent: false,
client: {
prefix: 'cache',
host: '127.0.0.1',
port: 6379,
password: '',
db: 0
}
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.