Skip to content
This repository has been archived by the owner on Dec 31, 2018. It is now read-only.
/ RedisNG-Node Public archive

A tiny yet Powerful Promise based Redis Client for Node.js

License

Notifications You must be signed in to change notification settings

steelbrain/RedisNG-Node

Repository files navigation

RedisNG

Greenkeeper badge RedisNG is an extremely lightweight yet full featured Redis client for Node.js

Installation

npm install --save redisng

Usage

import Redis from 'redisng'

const redis = new Redis()
redis.connect().then(function() {
  return redis.set('KEY', 'VALUE').then(function() {
    return redis.get('KEY')
  }).then(function(result) {
    console.log(result)
    redis.close()
  })
}, function(e) {
  console.log(e.message, e.stack)
})

API

class Redis extends EventEmitter{
  connect(host, port): Promise
  ref(): void
  unref(): void
  close(): void

  get(key): Promise<string>
  set(key, value): Promise<string>
  ... other redis commands ...
}

License

This project is licensed under the terms of MIT license. See the License file for more info.

About

A tiny yet Powerful Promise based Redis Client for Node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published