0.0.1 • Published 8 years ago

cofy-ioredis v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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);