项目作者: kwoktung

项目描述 :
mini redis client in typescript
高级语言: TypeScript
项目地址: git://github.com/kwoktung/redis.git
创建时间: 2019-06-09T11:51:25Z
项目社区:https://github.com/kwoktung/redis

开源协议:MIT License

下载


iredis

mini redis client written by nodejs for tour, don’t use in production

completed feature

  1. Basic Command, such as get set
  2. sub/pub

usage

npm i iredis

  1. const Redis = require("iredis")
  2. const client = new Redis()
  3. client.set('key', 'value');
  4. client.subscribe('channel')
  5. client.on('channel', function(data) {
  6. // do something with data
  7. })