0.0.3 • Published 12 years ago

nutcracker v0.0.3

Weekly downloads
5
License
-
Repository
github
Last release
12 years ago

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.

Usage

nutcracker = require "nutcracker"
client = nutcracker.createClient(22121, "127.0.0.1")

client.set("string key", "string val", nutcracker.print)
client.keys("*", redis.print)
# => Error: Error: nutcracker: cannot use keys command
# => false