1. 首页
  2. 考试认证
  3. 其它
  4. node acl memcached backend node acl的Memcached后端

node acl memcached backend node acl的Memcached后端

上传者: 2024-10-15 00:33:02上传 ZIP文件 4.42KB 热度 3次

节点ACL的Memcached后端是Memcached的后端。地位:

安装使用npm:


npm install acl-memcached-backend

例子:


var acl = require('acl'), Backend = require('acl-memcached-backend'), Memcached = require('memcached');

var client = new Memcached('localhost:11211');

var backend = new Backend(client, 28800);

var acl = new acl(backend);

acl.allow([{ roles: ['someRole'] }]);

用户评论