Skip to content

AdamPflug/express-brute-memcached

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A memcached store for ExpressBrute

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published