@chandre/egg-redis-cache
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

@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.

License

MIT

Package Sidebar

Install

npm i @chandre/egg-redis-cache

Weekly Downloads

0

Version

1.0.10

License

MIT

Unpacked Size

13.7 kB

Total Files

8

Last publish

Collaborators

  • chandre