Skip to content

shimdh/nutcracker_node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nutcracker - a node.js nutcracker(twemproxy) client

nutcracker has a limitation on available commands (e.g., "info", "keys" and more).

So you cannot use node_redis as it is. This module wraps these unavailable commands, and if these commands were called, return warning message and errors.

Now it was added redis stream for using twemproxy.

Installation

npm install node-nutcracker

Usage

var nutcracker = require("node-nutcracker");
var client = nutcracker.createClient(22121, "127.0.0.1");

client.set("string key", "string val", nutcracker.print);
client.keys("*", nutcracker.print);

var redisStream = nutcracker.Redis;

About

a node.js nutcracker(twemproxy) client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 93.6%
  • Makefile 6.4%