| CARVIEW |
Every repository with this icon (
Every repository with this icon (
| Description: | A Redis client implementation for JavaScript (Node, Google V8) edit |
| Homepage: | edit |
| Public Clone URL: |
git://github.com/fictorial/redis-node-client.git
Give this clone URL to anyone.
git clone git://github.com/fictorial/redis-node-client.git
|
| Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:fictorial/redis-node-client.git
|
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Mon Jun 15 23:23:51 -0700 2009 | basic implementation completed. * pipelining *... [Brian Hammond] |
| |
README.md | Wed Jun 17 13:12:42 -0700 2009 | fat finger parade [Brian Hammond] |
| |
TODO | Wed Jun 17 12:54:55 -0700 2009 | all tests pass [Brian Hammond] |
| |
examples/ | Wed Jun 17 13:07:19 -0700 2009 | clarifications, typo fixes [Brian Hammond] |
| |
redis.js | Sun Jun 21 22:44:17 -0700 2009 | fix for redis.set('key', 42) [fictorial] |
| |
tests/ | Sun Jun 21 22:55:24 -0700 2009 | clean test dbs (14,15) on test run startup [fictorial] |
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.
Uses
The following projects form a web services implementation platform that is highly scalable, and is very easy to design for, develop for, and deploy.
- Google V8 ECMAScript interpreter
- Node
- node-json-rpc
- Redis
- redis-node-client
Google V8 can be found on Google Code. The other projects are available on GitHub.
Asynchronicity
Node performs all I/O using libev and is thus asynchronous. 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 = redis.get('counter')
This Node-based Redis client:
var foo = redis.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 tests/test.js file as a good example of this.
Status
- The full Redis command specification is supported as of June 17, 2009.
- All tests pass.
- See the TODO file for known issues.
Author
Brian Hammond, Fictorial











