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

219 Commits

Author SHA1 Message Date
b91692e928 Skip tls tests on windows and stunnel
This will also remove the libwrap option to work on arch
2015-11-23 18:20:15 +01:00
0596480b03 Fix a few style/whitespace errors 2015-11-23 16:58:46 +01:00
c74107c972 Add mention of tls option 2015-11-23 16:58:45 +01:00
1fa9f15ae4 Add tests for TLS connections 2015-11-23 16:56:37 +01:00
eae5596a3c Add support for TLS connections 2015-11-23 16:56:37 +01:00
918882f0bf Hotfix 2015-11-23 14:38:33 +01:00
b5fe822553 Add selected_db to the new redis instance if using client.duplicate 2015-11-23 14:38:10 +01:00
9ca2d1ddaa Fix test on appveyor
Somehow the calls do not seem to be handled sync on appveyor in this test
2015-11-23 14:38:10 +01:00
f82fb6cf42 Explicitly install hiredis on appveyor and only use start / end clients if needed 2015-11-23 13:22:07 +01:00
6711c94d1b Add duplicate function to duplicate the current client instance
Fixes #919
2015-11-23 11:32:23 +01:00
ac9ff9a3b1 Refactor js parser
Fix tests to work with Node.js 0.10
Improve average use case speed by up to 20%
Fix some small js parser issues
2015-11-23 11:32:23 +01:00
b6a81a4297 Use a .create_stream function, so other libraries can mock the stream if wanted
Reference https://github.com/hdachev/fakeredis/pull/34
2015-11-23 11:31:41 +01:00
8f9ad00de2 Add the redis url to the options object and accept .createClient(null, host, options) 2015-11-23 11:30:50 +01:00
30d2184dbb Throw on other protocols provided than the redis protocol 2015-11-23 11:30:50 +01:00
634dcee859 Only initiate the parser once per instance and throw sync if the parser can't be found 2015-11-23 11:30:50 +01:00
d3352bf550 Auto detect ip family if a IP has been provided 2015-11-23 11:30:50 +01:00
06a1bdd7b0 Fix js parser handling big values not fast enough
Fixes #678
2015-11-23 11:30:35 +01:00
8bf794fb36 Stricten tests by always ending redis with .end(true) if possible 2015-11-22 16:56:54 +01:00
431bed882b Increase test timeout for appveyor 2015-11-19 00:29:49 +01:00
241e156499 Fix saving buffers with charsets other than utf-8 while using multi
This will also improve pipelinening for buffers and fixes the return value of Batch.exec

Fixes #913
2015-11-18 02:43:43 +01:00
19ce6680ef Prevent jshint race condition 2015-11-17 22:08:17 +01:00
ff857f97ae Intermediate fix js parser handling big values very slow
Closes #900
2015-11-08 23:05:15 +01:00
3e64ce7bc3 Add regression test for return_buffers in pub/sub mode (#911) 2015-10-30 16:09:17 +03:00
2cc01f52b6 Use higher time difference for slow machines in tests 2015-10-30 01:33:51 +01:00
cc79b2db69 Deactivate test for windows 2015-10-30 01:16:11 +01:00
dd563c2cb9 Fix unix only test not to run on windows 2015-10-30 00:09:16 +01:00
b7a0f6f905 Add test. Closes #909 2015-10-29 23:49:10 +01:00
88c9e28a27 Fix test 2015-10-29 23:27:52 +01:00
d454e4025b Fix an issue with .multi after a reconnect on node 0.10
Add .path to .createClient options object for unix sockets
2015-10-29 23:23:20 +01:00
7718e219e9 Remove listener if not needed anymore and alawys end a client after a test 2015-10-29 15:04:47 +01:00
dc6fc9c113 Use connect_timeout also as the socket_timeout if explicitly provided
Fixes #587
Fixes #393
Closes #652
Closes #394
2015-10-29 14:21:06 +01:00
afc4989495 Remove command queue high and low water marks 2015-10-28 23:53:10 +01:00
d39f6961e6 Add tests and emit UNCERTAIN_STATE errors 2015-10-28 23:53:10 +01:00
0ec2c43603 Fix fired but not yet returned commands not being rejected after a connection loss 2015-10-28 23:53:10 +01:00
ebea0872a9 Add regression test 2015-10-28 23:53:10 +01:00
399a29a97c Improve pipeline logic and fix #897 2015-10-28 23:53:10 +01:00
1cb158b5da Add zscan test 2015-10-28 23:53:10 +01:00
5d08132f7c Fix: do not stop parsing a chunk if the first character is a line break
Add changelog entry
2015-10-27 11:28:03 +01:00
304abe4318 Fix individual createClient functions passing undefined options to a new instance. Closes #893 2015-10-18 16:58:34 +02:00
2a65ee48dd Fix some minor issues and add more tests
Do not mutate the options object and add some more tests
2015-10-17 21:56:16 +02:00
0d4d4d7416 Fix multi not being executed on node 0.10 if not yet ready. Closes #889 2015-10-14 02:24:11 +02:00
60e9d0fdd6 Fix multi regression. Closes #889
Allow commands being executed after a Multi / Batch was initiated but not yet executed
2015-10-14 00:58:27 +02:00
06f57fd1d9 Add some more notes and tests 2015-10-12 17:21:58 +02:00
f0e28bf0f7 Minor improvement for .batch and .multi for small values
Improve the speed by round about 5% for small values

Add Multi.exec_atomic
2015-10-12 08:26:46 +02:00
ed2fc95444 Fix should_buffer return values and empty .batch and .auth return value being sync
Fix test
2015-10-11 03:38:41 +02:00
76a2e31c9e Add return_buffers tests 2015-10-11 03:35:22 +02:00
d59d6cf114 Add .batch tests 2015-10-11 03:35:22 +02:00
f8c245e04f Add .batch with better pipeline implementation 2015-10-11 03:35:22 +02:00
146d88154c Fix send_command always returning should_buffer boolean
Fix .auth, .select and .exec to return the should_buffer boolean
2015-10-11 03:35:22 +02:00
e47ba4a583 Improve performance further 2015-10-11 03:35:21 +02:00