acl-memcached-backend
Memcached Backend for NODE ACL ===================
Last updated 6 years ago by futurechan .
ISC · Original npm · Tarball · package.json
$ cnpm install acl-memcached-backend 
SYNC missed versions from official npm registry.

Memcached Backend for NODE ACL

This is a Memcached backend for acl

##Status

BuildStatus

##Installation

Using npm:

npm install acl-memcached-backend

##Examples

var acl = require('acl')
    , Backend = require('acl-memcached-backend')
	, Memcached = require('memcached')
	, client = new Memcached('localhost:11211')
	, backend = new Backend(client, 28800)
    , acl = new acl(backend)
;

acl.allow([
	{
		roles:['someRole'], 
		allows:[
			{resources:'/resource', permissions:['get', 'post', 'put']},
			{resources:'/resource', permissions:['get', 'post', 'put']}
		]
	}
])

Current Tags

  • 1.0.1                                ...           latest (6 years ago)

2 Versions

  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |