Home

Awesome

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

For details see node-memcached.