express-brute-memcached
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/express-brute-memcached package

0.0.1 • Public • Published

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');
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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.1176latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.1176

Package Sidebar

Install

npm i express-brute-memcached

Weekly Downloads

176

Version

0.0.1

License

BSD

Last publish

Collaborators

  • adampflug