egg-ratelimiter3

1.0.2 • Public • Published

egg-ratelimiter3

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-ratelimiter3 --save
or
$ pnpm add egg-ratelimiter3

Usage

// {app_root}/config/plugin.js
exports.ratelimiter = {
  enable: true,
  package: 'egg-ratelimiter',
};

Configuration

// {app_root}/config/config.default.js
// must set redis config
exports.redis ={
  client:...
}
exports.ratelimiter = {

}

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

Thanks

rolling-rate-limiter

License

MIT

Package Sidebar

Install

npm i egg-ratelimiter3

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

5.9 kB

Total Files

7

Last publish

Collaborators

  • zdt1013