Skip to content

kwoktung/redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

const Redis = require("iredis")
const client = new Redis()

client.set('key', 'value');

client.subscribe('channel')
client.on('channel', function(data) {
    // do something with data
})