Dayananda Nanjundappa
a6670edb9a
Support for retrieving data as Buffer on a per command basis
...
This is achieved by introducing a new option to the createClient method called bufferedInput.
If bufferedInput is set to true, then the returned data will be a Buffer if the command argument passed is a buffer
E.g.
var redis = require("redis"),
client = redis.createClient(<port>, <host>, {buffered_input: true});
client.set("foo_rand000000000000", "OK");
// The below get request will return a utf8 string
client.get("foo_rand000000000000", function (err, reply) {
console.log(reply.toString()); // Will print `OK`
});
// The below get request will return a Buffer as the key is specified as a Buffer
client.get(new Buffer("foo_rand000000000000"), function (err, reply) {
console.log(reply.toString()); // Will print `<Buffer 4f 4b>`
});
client.end();
2011-11-03 16:32:47 +05:30
Matt Ranney
04b4db8723
Mention EVAL.
2011-06-30 15:33:27 -06:00
Matt Ranney
bd21c73b81
Move usage example to the top.
2011-06-30 15:31:03 -06:00
Matt Ranney
68774e071c
Update description of hiredis and JS parser.
2011-06-30 15:27:49 -06:00
Matt Ranney
707c9ab3df
Add static list of commands to those downloaded from redis.io.
2011-06-28 22:48:30 -07:00
Matt Ranney
3d36711563
Auto update of new commands from redis.io (Dave Hoover)
...
Run this: node generate_commands.js
To fetch redis.io/commands.json and save it to a file that node_redis will read at startup.
2011-06-12 14:25:57 -10:00
Matt Ranney
f10ff9e916
Lots of bugs fixed.
...
* connection error did not properly trigger reconnection logic [GH-85]
* client.hmget(key, [val1, val2]) was not expanding properly [GH-66]
* client.quit() while in pub/sub mode would throw an error [GH-87]
* client.multi(['hmset', 'key', {foo: 'bar'}]) fails [GH-92]
2011-04-21 16:48:14 -10:00
Matt Ranney
2fcc947f11
Add MONITOR
command and special monitor command reply parsing.
2011-03-14 15:50:47 -10:00
Matt Ranney
1a14e24faa
Add magical auth command.
...
Authentication is now remembered by the client and will be automatically sent to the server
on every connection, including any reconnections.
2011-02-27 23:10:44 -10:00
Matt Ranney
99ae085e40
Document ready check changes.
2011-02-16 15:59:17 -10:00
Matt Ranney
8cf8c99763
Update Redis commands link to redis.io.
2011-02-11 00:35:20 -10:00
Matt Ranney
81ac292fce
Fix markdown indentation, I think.
2010-12-29 17:51:44 -08:00
Matt Ranney
ccce845cc2
Some bug fixes:
...
* An important bug fix in reconnection logic. Previously, reply callbacks would be invoked twice after
a reconnect.
* Changed error callback argument to be an actual Error object.
New feature:
* Add friendly syntax for HMSET using an object.
2010-12-29 17:48:40 -08:00
Matt Ranney
cfe0df1c3f
Remove warning about missing hiredis. You probably do want it though.
2010-12-08 18:42:07 -08:00
Matt Ranney
b81da6d8fc
Support for multiple response parsers and hiredis C library from Pieter Noordhuis.
...
Return Strings instead of Buffers by default.
Empty nested mb reply bug fix.
2010-12-08 16:15:45 -08:00
Matt Ranney
b907364573
Support for multiple reply parsers including hiredis.
...
Several parsing bugs fixed in JavaScript.
Some new config options that need to be better documented.
2010-12-06 09:11:16 -08:00
Matt Ranney
05e9699817
Fix for null MULTI response when WATCH condition fails.
2010-11-10 10:36:26 -08:00
Matt Ranney
1eb3f6a1aa
Add "drain" and "idle" events.
2010-11-09 13:13:40 -08:00
Matt Ranney
6bda787181
Bottom spacer.
2010-10-30 02:09:34 -07:00
Matt Ranney
b097bf2ccd
Add bottom spacer.
2010-10-30 02:08:49 -07:00
Matt Ranney
d51abad43f
Minor wording tweaks.
2010-10-30 01:40:09 -07:00
Matt Ranney
d0ffb47fbb
Update contributors info.
2010-10-02 16:35:18 -07:00
Matt Ranney
b4f5891da3
Draw attention to how awesome and trend-setting our speed techniques are.
2010-09-29 21:38:15 -07:00
Matt Ranney
8659ecda85
Update contributors info.
2010-09-27 21:55:49 -07:00
Matt Ranney
aab093848f
Put npm install instructions right up top.
2010-09-24 20:26:11 -07:00
Matt Ranney
85b0f6009d
Update documentation for awesome new MULTI syntax.
2010-09-24 14:03:08 -07:00
Matt Ranney
f239a32ce8
Bump README.md so Github will notice it.
2010-09-23 21:27:15 -07:00
Matt Ranney
a6bfae83b9
Docs and example of listening for "error" event.
2010-09-23 14:41:34 -07:00
Matt Ranney
abd76f8354
Update docs for end() and quit()
2010-09-23 12:21:02 -07:00
Matt Ranney
f4c7280fb6
Updated outlandish speed claims.
2010-09-23 09:32:54 -07:00
Matt Ranney
1ff6047b01
Update MULTI example and description.
2010-09-22 17:34:07 -07:00
Matt Ranney
6fac084ab8
Fix typo.
2010-09-22 10:28:25 -07:00
Matt Ranney
f3358d9d9f
Move extras to Extras section.
2010-09-20 12:21:39 -07:00
Matt Ranney
0f2de13285
Update docs for client.quit() and other client properties.
2010-09-20 12:16:31 -07:00
Matt Ranney
eb11634ab6
Add docs for pub/sub
2010-09-19 23:46:09 -07:00
Matt Ranney
13e7efc531
Update example for new API.
2010-09-17 17:31:58 -07:00
Matt Ranney
a8573ea223
Remove TODO.
2010-09-17 16:21:27 -07:00
Matt Ranney
fb786ced80
Fix typo.
2010-09-17 11:28:39 -07:00
Matt Ranney
71c584f186
Markdown quirks.
2010-09-17 11:27:54 -07:00
Matt Ranney
78cb4105ca
Update example.
2010-09-17 11:26:46 -07:00
Matt Ranney
12542e4ccd
Formally describe API. Add "why" section.
2010-09-17 11:17:37 -07:00
Matt Ranney
c4b7c65530
Update documentation.
2010-09-15 12:23:58 -07:00
Matt Ranney
40b69a4204
Update documentation.
2010-09-15 12:21:29 -07:00
Matt Ranney
0012228cf6
Update documentation.
2010-09-14 22:59:52 -07:00
Matt Ranney
95bdb3f0a2
Update TODO
2010-09-14 17:50:58 -07:00
Matt Ranney
8bf4640d69
Improve docs.
2010-09-14 17:48:32 -07:00
Matt Ranney
06173ff6be
Add simple example.
2010-09-14 01:29:19 -07:00
Matt Ranney
ad922e8360
Write a simple README
2010-09-14 01:20:59 -07:00