wedis

0.1.5 • Public • Published

wedis

NPM Version NPM Downloads Build Status Test Coverage

simple redis implementation as node lib

Installation

npm install wedis

Get Started

const Wedis = require('wedis')
const client = new Wedis

client.setAsync('key', 'value')
client.getAsync('key').then(value=>console.log(value))
client.zaddAsync('key', 'score', 'value')
client.hsetnxAsync('key', 'sub-key', 'value')

// gracefully shutdown
client.store.stop().then(()=>{console.log('Stopped')})

Package Sidebar

Install

npm i wedis

Weekly Downloads

0

Version

0.1.5

License

ISC

Unpacked Size

14.5 kB

Total Files

11

Last publish

Collaborators

  • devfans