promiredis

Promise wrapped node redis client


Keywords
redis, promise
License
ISC
Install
npm install promiredis@0.1.1

Documentation

Promiredis

Build Status

Promise wrapped node redis client.

Installation

npm i --save promiredis

Usage

import promiredis from 'promiredis'

async function main() {
    promiredis.initialize({ port: 6379, host: 'localhost', namespace: 'FOO' })

    // will write into key 'FOO/foo'
    await promiredis.set('foo', { name: 'foo' })

    // will get from key 'FOO/foo'
    const res = await promiredis.get('foo')
}

try {
    main()
} catch (e) { ... }