abacl-redis
v2.0.3
Published
Redis driver for ABACL.
Downloads
7
Maintainers
Readme
ABACL - Redis Driver
ABACL redis storage driver to store policies in your redis.
Quick Start
Installation
npm install --save abacl-redis
Use Redis Driver
import { RedisDriver } from 'abacl-redis';
import { AccessControl } from 'abacl';
const ac = new AccessControl([], { driver: RedisDriver.build(/* Redis | RedisOptions */) });
// OR
const ac = new AccessControl([], { driver: () => RedisDriver.build(/* Redis | RedisOptions */) });