Every repository with this icon (
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
ACKNOWLEDGEMENTS | Mon Nov 02 17:17:07 -0800 2009 | |
| |
LICENSE | Mon Nov 02 17:30:08 -0800 2009 | |
| |
README.md | Mon Nov 02 17:28:40 -0800 2009 | |
| |
TODO | Mon Nov 02 21:53:42 -0800 2009 | |
| |
redis.js | Mon Nov 02 21:53:42 -0800 2009 | |
| |
test.js | Mon Nov 02 20:47:17 -0800 2009 |
redis-node-client
A Redis client implementation for Node which runs atop Google V8.
This project lets you access a Redis instance using server-side JavaScript.
Asynchronicity
Node does not block, period.
This means that while a typical Redis client might have code that accesses a Redis server in a blocking call, Node-based code cannot.
Typical Redis client (e.g. Python):
foo = client.get('counter')
This Node-based Redis client:
var foo = client.get('counter', function(value) {
puts("counter = " + value)
});
That is, you must supply a callback function that is called when Redis returns, even if Redis queries are extremely fast.
A potential upside to this slightly awkward requirement is that you can enjoy the benefits of pipelining many Redis queries in a non-blocking way. Redis returns replies for requests in the order received.
See the test.js file as a good example of this.
Status
- The full Redis 1.0 command specification is supported.
- All tests pass.
- See the TODO file for known issues.
Author
Brian Hammond, Fictorial







