https://github.com/devfans/wedis
simple implementation of redis as node js lib
https://github.com/devfans/wedis
Last synced: 6 months ago
JSON representation
simple implementation of redis as node js lib
- Host: GitHub
- URL: https://github.com/devfans/wedis
- Owner: devfans
- License: mit
- Created: 2018-05-04T08:00:35.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T02:46:30.000Z (almost 7 years ago)
- Last Synced: 2025-10-04T08:23:21.181Z (6 months ago)
- Language: JavaScript
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wedis
[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Build Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
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')})
```
[npm-image]: https://img.shields.io/npm/v/wedis.svg
[npm-url]: https://npmjs.org/package/wedis
[travis-image]: https://img.shields.io/travis/devfans/wedis/master.svg
[travis-url]: https://travis-ci.org/devfans/wedis
[coveralls-image]: https://img.shields.io/coveralls/devfans/wedis/master.svg
[coveralls-url]: https://coveralls.io/r/devfans/wedis?branch=master
[downloads-image]: https://img.shields.io/npm/dm/wedis.svg
[downloads-url]: https://npmjs.org/package/wedis