Tomasz Durka
38dbacac9f
Add retry_max_delay option
- add option
- add test
12 years ago
Bryce Baril
92ed0befc1
In nested MULTIBULK buffers, correctly recurse on an incomplete read buffer.
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
12 years ago
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>
12 years ago
Bryce Baril
0c172f425c
Fix parser incorrect buffer skip for MULTI/EXEC transaction errors with WATCH.
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
12 years ago
Bryce Baril
87132e2b03
Add hiredis guard to INCR test
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
12 years ago
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
12 years ago
DTrejo
a02b0f57e4
test.js: early return if command not supported
12 years ago
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>
12 years ago
Jonas Dohse
f0ae6642f9
Use first word of multi word commands
Close #363 .
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
12 years ago
DTrejo
938c0526a0
EVAL: allow parameters as an array. Close #368 .
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
12 years ago
Bryce Baril
f3c298d088
Removing order requirement for KEYS test
Close #378 .
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
12 years ago
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>
12 years ago
DTrejo
92ac62541d
Fix #381 . slowlog test failure on first run.
12 years ago
Nitesh
0f5b43a68c
test.js: slowlog. Closes #295
Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
12 years ago
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>
12 years ago
DTrejo
6a09b2d1a3
fix require in examples/eval.js
12 years ago
DTrejo
bd1e004e99
regenerate lib/commands.js
12 years ago
Matt Ranney
c3ea30ebea
Merge pull request #303 from mowaken/master
fixed RedisClient.prototype.end()
12 years ago
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".
12 years ago
Matt Ranney
de21203c51
Merge pull request #312 from janmatousek/master
Removed usage of undefined variable current_retry_delay
12 years ago
Matt Ranney
24901d9fa3
Merge pull request #317 from mjijackson/return_buffers_ints
Make return_buffers work with ints
12 years ago
Michael Jackson
7f3f11f9b1
Make return_buffers work with ints
12 years ago
Jan Matousek
cc3a1da543
fix whitespace usage
12 years ago
Jan Matousek
71070d84fb
Remove unused variable reference
12 years ago
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.
12 years ago
DTrejo
252a77e92a
multi_bulk reply test for fix #274
12 years ago
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>
12 years ago
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>
12 years ago
Matt Ranney
0391b95490
Important bug fix for null responses (Jerry Sievert)
12 years ago
Matt Ranney
5a251a06d1
Merge pull request #270 from chakrit/master
Test for #267
12 years ago
Matt Ranney
4a7e74b29e
Merge pull request #269 from JerrySievert/master
fix for issue #267
12 years ago
Chakrit Wichian
587d4a361b
Add test for `GET non-existent-key` case. (issue #267 )
12 years ago
Jerry Sievert
668dfdead6
fix null key response: issue #267
12 years ago
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)
12 years ago
Matt Ranney
670c256e35
Whitespace and other JSHint changes.
12 years ago
Matt Ranney
63f4f5cdf2
Merge pull request #242 from JerrySievert/master
a generally faster javascript parser
12 years ago
Matt Ranney
03823cf3c4
Merge pull request #266 from mranney/rm-hiredis
package.json: remove optional hiredis dep
12 years ago
DTrejo
bb6dc24f92
package.json: remove optional hiredis dep
Fix #258 . Also adds keywords hash and more info to
the description hash.
12 years ago
Kevin Ingersoll
790c783e8d
Fix tests w/ support for array as last arg and no errors
Signed-off-by: DTrejo <david.trejo@voxer.com>
12 years ago
Jerry Sievert
3d27cb23ee
update for style changes
12 years ago
Jerry Sievert
8be55fb304
fix all but lrange 20k
12 years ago
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>
12 years ago
Kevin Ingersoll
c8103928b4
Attempt evalsha before eval
Fix #253
Signed-off-by: DTrejo <david.trejo@voxer.com>
12 years ago
DTrejo
58804e6e27
test.js: HLEN
12 years ago
DTrejo
f3ee8eabd8
commands.js regenerated
12 years ago
DTrejo
75c38dd8b3
README.md: more indignation
12 years ago
DTrejo
a042258794
readme.md: reorder
12 years ago
DTrejo
949ecdff31
readme.md: add ignacio as contrib
12 years ago
DTrejo
92264ad5fa
readme.md: how to ZREVRANGEBYSCORE with LIMIT. fixes #163
12 years ago
DTrejo
49c73bac30
readme: please include bench results on iffy pull requests
12 years ago