0.2.1 • Published 7 years ago

redis-ts-async v0.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Typescript Declaration for using redis with async function

WIP Not all 'redis'-functions are declared

Usage

import * as redis from 'redis';
import 'redis-ts-async';
import * as bluebird from 'bluebird'

bluebird.promisifyAll((<any>redis).RedisClient.prototype);
bluebird.promisifyAll((<any>redis).Multi.prototype)

let r = redis.createClient();

r.hsetAsync('teset', 'val2', 'tes2').then(
    function(err) {
        console.log(err)
    },
    function (reply) {
        console.log(reply);
    });
});
0.2.1

7 years ago

0.2.0

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago