t-k / nutcracker_node

a node.js nutcracker(twemproxy) client

Home Page:https://npmjs.org/package/nutcracker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nutcracker - a node.js nutcracker(twemproxy) client

NPM version Build Status Dependency Status

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.

Installation

npm install nutcracker

Usage

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

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

About

a node.js nutcracker(twemproxy) client

https://npmjs.org/package/nutcracker

License:MIT License


Languages

Language:CoffeeScript 100.0%