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
DTrejo
f120cbd302
diff_multi_bench_output.js for easy benchmark comparison
12 years ago
Ignacio Burgueño
50914baa7f
Save and clear client state. Restore it after the connection is ready.
This change stores the connection state regarding subscriptions,
selected db and monitoring. When the connection to Redis drops, the state
is reestablished after a succesful reconnect. Fixes #241 . Fixes #210 .
Signed-off-by: DTrejo <david.trejo@voxer.com>
12 years ago
Jerry Sievert
34568a4bb3
added fallback if missing Buffer.concat()
12 years ago
Jerry Sievert
8d0f2e7239
some microbenchmark updates, slight speed improvement
12 years ago
Jerry Sievert
4048349115
some cleanup and comments
12 years ago
DTrejo
a5ea716ccb
readme: add more contributors
12 years ago
Jerry Sievert
7ec1815188
generally faster javascript parser
12 years ago
DTrejo
a798cc0e57
readme.md: typo
12 years ago
DTrejo
64702f18c1
rename tests to benches for clarity
12 years ago
DTrejo
1b0b2dc87d
index.js: fix enable_offline_queue default. tests pass
12 years ago
DTrejo
a532e65ccf
readme: how to contribute
12 years ago
Shankar Karuppiah
c913c06f46
Added documentation for disable_offline_queue option
Signed-off-by: DTrejo <david.trejo@voxer.com>
13 years ago
Shankar Karuppiah
71a52638de
Added checking for callback before attempting to execute the callback
Signed-off-by: DTrejo <david.trejo@voxer.com>
13 years ago
Shankar Karuppiah
83dc4c999b
Added option to disable offline queue
Signed-off-by: DTrejo <david.trejo@voxer.com>
13 years ago
Trae Robrock
eb005b10df
Forgot a comma
Signed-off-by: DTrejo <david.trejo@voxer.com>
12 years ago
Trae Robrock
db4f1648d4
Adding tests for idle event
Signed-off-by: DTrejo <david.trejo@voxer.com>
12 years ago
Trae Robrock
2224767c4c
Moving some logic that should fix the idle event
Signed-off-by: DTrejo <david.trejo@voxer.com>
12 years ago
DTrejo
b60e001fa0
hmset throws/errors out on non-string values. fixes #218
13 years ago
DTrejo
7734fb63b4
fix #222 hmset object expansion by @kartikrao
13 years ago
DTrejo
65142cf8c0
[doc] missing key, fix #223
13 years ago
Dave Peticolas
874a893c2c
test.js: Switch to pubsub mode when the number of channels is > 0.
Tests for a bug where the client unsubscribes
and then subscribes to a single channel. If the
subscription is sent before the response to the
unsubscribe is received, then the client would
leave pubsub mode when it received the unsubscribe
response and then fail to enter when the subsequent
subscription is processed. This is another test for #190 :
https://github.com/mranney/node_redis/pull/190
Signed-off-by: David Trejo <david.daniel.trejo@gmail.com>
13 years ago
Matt Ranney
172fc8251b
Bump version.
13 years ago
Matt Ranney
1d22f1f874
Many contributed fixes. Thank you, contributors.
* [GH-190] - pub/sub mode fix (Brian Noguchi)
* [GH-165] - parser selection fix (TEHEK)
* numerous documentation and examples updates
* auth errors emit Errors instead of Strings (David Trejo)
13 years ago
Matt Ranney
09dc8dcf39
Merge pull request #166 from TEHEK/issue-165
Fix for [GH-165] - createClient to properly assign parser_module
13 years ago
Matt Ranney
9e76387f59
Merge pull request #190 from bnoguchi/pub_sub_mode-fix
Pub sub mode fix
13 years ago
David Trejo
38e38c5e7c
readme: info on how to select a different db
13 years ago