1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00
Commit Graph

1069 Commits

Author SHA1 Message Date
Bryce Baril
a5dc9898bb Merge pull request #401 from dohse/enable-client-command
Enable client command
2013-03-15 15:07:19 -07:00
Jonas Dohse
67e908ad55 Avoid collision between command and internal field 2013-03-15 22:34:32 +01:00
Jonas Dohse
de22a94edd Amend SCRIPT LOAD test cases 2013-03-14 15:55:13 +01:00
Bryce Baril
ccd4a2b8a3 Adding percentage outputs to diff_multi_bench_output.js
Adding missing dev dependencies to package.json
2013-03-12 21:00:37 -07:00
Tomasz Durka
38dbacac9f Add retry_max_delay option
- add option
- add test
2013-03-12 12:31:19 +01:00
Bryce Baril
92ed0befc1 In nested MULTIBULK buffers, correctly recurse on an incomplete read buffer.
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-03-09 19:27:33 -05:00
Bryce Baril
9127f34393 Parser should only catch parser errors and bubble the rest to the caller.
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-03-09 19:27:33 -05:00
Bryce Baril
0c172f425c Fix parser incorrect buffer skip for MULTI/EXEC transaction errors with WATCH.
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-03-09 19:27:33 -05:00
Bryce Baril
87132e2b03 Add hiredis guard to INCR test
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-03-09 19:27:33 -05: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
DTrejo
a02b0f57e4 test.js: early return if command not supported 2013-02-23 22:43:26 -05:00
Tom Leach
837cec36b6 Detect is an incoming "reply" is in fact a pubsub message. If so, do not pop the command queue.
This fixes an issue where the command queue gets popped prematurely by pubsub
messages, leading to callbacks for those commands not being invoked.

Close #360.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-02-23 22:42:34 -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
938c0526a0 EVAL: allow parameters as an array. Close #368.
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-02-23 22:05:34 -05:00
Bryce Baril
f3c298d088 Removing order requirement for KEYS test
Close #378.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-02-23 21:11:36 -05:00
Bryce Baril
2a12ca39aa Fixing tests for Redis version 2.6.5+ MULTI/EXEC transaction failure compatibility.
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-02-23 21:08:18 -05:00
DTrejo
92ac62541d Fix #381. slowlog test failure on first run. 2013-02-23 21:06:36 -05:00
Nitesh
0f5b43a68c test.js: slowlog. Closes #295
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-02-17 20:30:18 -05:00
Garrett Johnson
b5a57b40f7 test.js: smembers reply should not assume order, b/c sets do not ensure order
Closes #326.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
2013-02-17 19:50:14 -05:00
DTrejo
6a09b2d1a3 fix require in examples/eval.js 2013-02-17 19:06:36 -05:00
DTrejo
bd1e004e99 regenerate lib/commands.js 2013-02-17 19:06:13 -05:00
roam
11db346e73 Fixed an unexpected exception bug when reconnecting in pub/sub mode if selected_db is not null
RedisClient might enter pub/sub mode after at least one SELECT command issued.
When reconnecting, the SELECT command is issued after restoring pub_sub_command to true, which causes an exception.
2012-12-19 15:04:07 +08:00
Matt Ranney
c3ea30ebea Merge pull request #303 from mowaken/master
fixed RedisClient.prototype.end()
2012-11-02 15:01:53 -07:00
Matt Ranney
f367b8a03c Another version bump because 0.8.1 didn't get applied properly for some mysterious reason.
Sorry about that.

Changed name of "faster" parser to "javascript".
2012-11-02 14:17:53 -07:00
Matt Ranney
de21203c51 Merge pull request #312 from janmatousek/master
Removed usage of undefined variable current_retry_delay
2012-11-02 13:51:31 -07:00
Matt Ranney
24901d9fa3 Merge pull request #317 from mjijackson/return_buffers_ints
Make return_buffers work with ints
2012-11-02 13:36:03 -07:00
Michael Jackson
7f3f11f9b1 Make return_buffers work with ints 2012-10-26 20:35:19 -07:00
Jan Matousek
cc3a1da543 fix whitespace usage 2012-10-18 19:38:39 +02:00
Jan Matousek
71070d84fb Remove unused variable reference 2012-10-18 19:37:37 +02:00
Richard Mok
a9626578df RedisClient.prototype.end function bug fixed.
An uncaught exception will be raised when the retry timer tries to
reconnect and encounter an error, for all event listeners of the stream
were removed in line 826. It should set closing varable to be true.
2012-10-11 16:07:36 +08:00
DTrejo
252a77e92a multi_bulk reply test for fix #274 2012-09-21 22:28:30 -04:00
Luigi Pinca
f03e673338 Fix cases where the offset is out of range (javascript parser)
The exception for the "too far" error was not thrown if the offset was bigger
than the buffer length, screwing up the parser. Fix #277

Signed-off-by: DTrejo <david.trejo@voxer.com>
2012-09-21 20:52:58 -04:00
Jerry Sievert
1dbe587fca remove null for rewind and use throw mechanism, should help with #273
Fix #275

Signed-off-by: DTrejo <david.trejo@voxer.com>
2012-09-21 20:48:31 -04:00
Matt Ranney
0391b95490 Important bug fix for null responses (Jerry Sievert) v0.8.1 2012-09-11 12:56:36 -07:00
Matt Ranney
5a251a06d1 Merge pull request #270 from chakrit/master
Test for #267
2012-09-11 12:54:55 -07:00
Matt Ranney
4a7e74b29e Merge pull request #269 from JerrySievert/master
fix for issue #267
2012-09-11 12:54:31 -07:00
Chakrit Wichian
587d4a361b Add test for GET non-existent-key case. (issue #267) 2012-09-12 01:59:35 +07:00
Jerry Sievert
668dfdead6 fix null key response: issue #267 2012-09-11 11:43:18 -07:00
Matt Ranney
cbcb8ca5b9 Many contributed features and fixes, including:
* Pure JavaScript reply parser that is usually faster than hiredis (Jerry Sievert)
* Remove hiredis as optionalDependency from package.json. It still works if you want it.
* Restore client state on reconnect, including select, subscribe, and monitor. (Ignacio Burgueño)
* Fix idle event (Trae Robrock)
* Many documentation improvements and bug fixes (David Trejo)
v0.8.0
2012-09-10 23:00:13 -07:00
Matt Ranney
670c256e35 Whitespace and other JSHint changes. 2012-09-10 22:50:54 -07:00
Matt Ranney
63f4f5cdf2 Merge pull request #242 from JerrySievert/master
a generally faster javascript parser
2012-09-10 22:32:15 -07:00
Matt Ranney
03823cf3c4 Merge pull request #266 from mranney/rm-hiredis
package.json: remove optional hiredis dep
2012-09-10 22:20:25 -07:00
DTrejo
bb6dc24f92 package.json: remove optional hiredis dep
Fix #258. Also adds keywords hash and more info to
the description hash.
2012-09-10 15:55:58 -04:00
Kevin Ingersoll
790c783e8d Fix tests w/ support for array as last arg and no errors
Signed-off-by: DTrejo <david.trejo@voxer.com>
2012-08-23 14:18:17 -07:00
Jerry Sievert
3d27cb23ee update for style changes 2012-08-23 13:09:05 -07:00
Jerry Sievert
8be55fb304 fix all but lrange 20k 2012-08-22 21:53:18 -07:00
Martín Ciparelli
124ea082b9 fixes #218 by expanding last argument array only for sadd command
Also adds a test that uses SADD in caps. Nicely enough, this makes
multi_bench.js run just a tiny bit faster :)

Signed-off-by: DTrejo <david.trejo@voxer.com>
2012-08-17 15:33:32 -07:00
Kevin Ingersoll
c8103928b4 Attempt evalsha before eval
Fix #253

Signed-off-by: DTrejo <david.trejo@voxer.com>
2012-08-16 13:51:32 -07:00
DTrejo
58804e6e27 test.js: HLEN 2012-08-06 18:19:47 -07:00
DTrejo
f3ee8eabd8 commands.js regenerated 2012-08-06 15:05:25 -07:00