Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tobill/redisTsAsync

Repository files navigation

Typescript Declaration for using redis withc 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);
    });
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors