Rate Limit Memcached
Memcached client for the express-rate-limit middleware.
Installation
$ npm install --save rate-limit-memcached
Usage
Node.js
var RateLimit = ;var Memcached = ;var MemcachedStore = ; var client = 'memcached.example.com:11211';var expiration = 20 * 60;var limiter = store: expiration: expiration client: client prefix: 'remoteip:' windowMs: expiration * 1000 max: 500 delayMs: 0; app;
TypeScript
app.uselimiter
Contribution
- Fork (https://github.com/linyows/rate-limit-memcached/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
npm ci
command and confirm that it passes - Create a new Pull Request