cofy-ioredis
v0.0.1
Published
cofy version of ioredis
Downloads
2
Readme
cofy-ioredis
ioredis co version
Install
$ npm install cofy-ioredis
Basic Start
var Redis = require('cofy-ioredis');
var redis = new Redis(redisurl);
var result = yield redis.$set('foo', 'bar');
result = yield redis.$get('foo');
// Arguments to commands are flattened, so the following are the same:
yield redis.$sadd('set', 1, 3, 5, 7);
yield redis.$sadd('set', [1, 3, 5, 7]);
// All arguments are passed directly to the redis server:
redis.$set('key', 100, 'EX', 10);