ebm

express-brute-memcached

A memcached store for ExpressBrute

Showing:

Popularity

Downloads/wk

2.8K

GitHub Stars

1

Maintenance

Last Commit

4yrs ago

Contributors

2

Package

Dependencies

3

License

BSD-2-Clause

Type Definitions

Tree-Shakeable

No?

Categories

Readme

express-brute-memcached

Build Status NPM version

A memcached store for express-brute

Installation

via npm:

  $ npm install express-brute-memcached

Usage

var ExpressBrute = require('express-brute'),
    MemcachedStore = require('express-brute-memcached');

var store = new MemcachedStore('127.0.0.1:11211');
var bruteforce = new ExpressBrute(store);

app.post('/auth',
    bruteforce.prevent, // error 403 if we hit this route too often
    function (req, res, next) {
        res.send('Success!');
    }
);

Options

  • hosts Memcached servers locations, can by string, array, or hash.
  • options
    • prefix An optional prefix for each memcache key, in case you are sharing your memcached servers with something generating its own keys.
    • ... The rest of the options will be passed directly to the node-memcached constructor.

For details see node-memcached.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial