Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

tim-smart/node-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-redis
==========

A redis client.

Usage
-----

    var redis = require('node-redis')

    var client = redis.createClient(port, host, auth)

    client.get('key', function (error, buffer) { ... })

    client.multi()
    client.lrange('key', 0, -1)
    client.lrange('key', [0, -1])
    client.exec(function (error, result) { result[0]; result[1] })

    client.subscribe('channel')
    client.on('message', function (buffer) { ... })
    client.on('message:channel', function (buffer) { ... })
    client.unsubscribe('channel')

    client.end()

About

A Redis client for Node.js. Fast, non-blocking and lightweight.

Resources

Stars

Watchers

Forks

Packages

No packages published