acl-memcached-backend
v1.0.1
Published
Memcached Backend for NODE ACL ===================
Downloads
2
Readme
Memcached Backend for NODE ACL
This is a Memcached backend for acl
##Status
##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']}
]
}
])