1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Commit Graph

279 Commits

Author SHA1 Message Date
Bryce Baril
3aab43e55a Spelling fix in the docs. 2013-03-17 16:31:05 -07:00
Tomasz Durka
c456315c1c Add docu for options: max_attemps connect_timeout 2013-03-18 00:16:58 +01:00
Tomasz Durka
3759291034 Docu 2013-03-17 23:52:17 +01:00
DTrejo
405011b640 Revert "hmset throws/errors out on non-string values. fixes #218"
Reverting because this was a documentation problem, not a problem with
the code. Performance-wise, this is faster than the approach in #345, though
it may cause users more trouble. This is okay, if someone opens an issue we
can point them to the docs.

This reverts commit b60e001fa0.

Conflicts:

	index.js
	test.js
2013-02-23 22:56:08 -05:00
Jonas Dohse
f0ae6642f9 Use first word of multi word commands
Close #363.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-02-23 22:18:13 -05:00
DTrejo
75c38dd8b3 README.md: more indignation 2012-07-30 15:10:41 -07:00
DTrejo
a042258794 readme.md: reorder 2012-07-26 10:52:03 -07:00
DTrejo
949ecdff31 readme.md: add ignacio as contrib 2012-07-25 19:16:07 -07:00
DTrejo
92264ad5fa readme.md: how to ZREVRANGEBYSCORE with LIMIT. fixes #163 2012-07-25 18:33:49 -07:00
DTrejo
49c73bac30 readme: please include bench results on iffy pull requests 2012-07-12 17:56:43 -07:00
DTrejo
a5ea716ccb readme: add more contributors 2012-07-07 17:00:00 -07:00
DTrejo
a798cc0e57 readme.md: typo 2012-07-05 19:27:20 -07:00
DTrejo
a532e65ccf readme: how to contribute 2012-07-05 19:04:19 -07:00
Shankar Karuppiah
c913c06f46 Added documentation for disable_offline_queue option
Signed-off-by: DTrejo <david.trejo@voxer.com>
2012-07-05 19:04:19 -07:00
DTrejo
b60e001fa0 hmset throws/errors out on non-string values. fixes #218 2012-06-04 16:13:56 -07:00
DTrejo
65142cf8c0 [doc] missing key, fix #223 2012-06-04 10:26:12 -07:00
David Trejo
38e38c5e7c readme: info on how to select a different db 2012-04-27 21:17:14 -04:00
David Trejo
0a732b8c0e readme: warn that code in callbacks to commands in a multi are not atomic 2012-04-27 21:07:59 -04:00
David Trejo
710a705be2 readme: highlight js examples 2012-04-27 21:07:17 -04:00
Jed Schmidt
192784905b Removed reference to individual args argument
When the second argument of `send_command` is not an array, the following
error is thrown:

    Error: send_command: second argument must be an array

Signed-off-by: David Trejo <david.daniel.trejo@gmail.com>
2012-04-27 16:43:09 -04:00
David Trejo
625d5134e2 readme: add more contributors 2012-04-27 13:31:15 -04:00
David Trejo
e7e5a07594 readme: add a few missing contributors to the list 2012-04-23 19:45:06 -04:00
Philip Tellis
4f172ce713 remove duplicate "take either" 2012-04-23 17:11:02 -03:00
David Trejo
cd5db44f66 readme: how to correctly auth to server, what error looks like if done wrong 2012-03-05 17:31:47 -05:00
David Trejo
5afa763c89 readme code formatting 2012-03-05 15:31:43 -05:00
Matt Ranney
642df49924 Further document no_ready_check. 2011-11-16 17:26:58 -10:00
Matt Ranney
b9734d13eb Add socket_nodelay option to control Nagle. Fixes [GH-33] 2011-11-16 11:12:26 -10:00
Matt Ranney
336030a33d Fix documentation for detect_buffers. 2011-11-16 10:29:58 -10:00
Matt Ranney
461ed06fab Doc update for [GH-148] fix. 2011-11-15 19:40:50 -10:00
Matt Ranney
edf46776a1 Merge remote-tracking branch 'dayananda/master'
Conflicts:
	index.js
2011-11-15 19:40:24 -10:00
Matt Ranney
69092a3f26 [GH-67] - hgetall now returns null instead of {} on empty reply 2011-11-15 15:21:49 -10:00
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