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

380 Commits

Author SHA1 Message Date
aa45e2c140 Make private api private functions 2016-03-27 04:21:34 +02:00
0c5947be51 Add string_numbers option to handle very big numbers 2016-03-27 03:19:18 +02:00
94e9f1fcfc Replace jshint with eslint and add lots of rules
Fix eslint errors accordingly
2016-03-26 14:45:12 +01:00
7a5a4aa535 Fix pub sub mode
There is likely a better and more performant way to fix this but this works so far
and should be good enough to release and improve later.

Make test more robust

Add another test
2016-03-26 02:14:10 +01:00
344291a98a Fix monitoring mode 2016-03-25 16:09:20 +01:00
db6cf0a3b5 Don't throw on invalid data types but throw a warning instead
Fixes #1013
2016-03-21 17:22:03 +01:00
6598da5366 Indicate transmission errors 2016-03-15 03:56:47 +01:00
d858bd8383 Passing a stream as second parameter in the constructor
To support private streams this is implemented.
This needs some monkey patching to work, so it is not officially
supported and might be removed at any time!

Fixes #950
Closes #951
2016-03-10 22:01:23 +01:00
c2e25a7f71 Move lots code into separate files and split big functions party into smaller ones
Also refactor small stuff here
Removed the .send_anyway boolean and use .ready instead
2016-03-07 01:57:56 +01:00
535db5231e Fix rename command not working together with key prefixes 2016-03-07 01:57:56 +01:00
575ad7357b Insert deprecation warnings and some minor refactoring 2016-03-07 01:57:56 +01:00
19ea518b36 Do not emit ready if the slave is still syncing with master / master being down 2016-03-07 01:57:56 +01:00
89209b8adc Handle very big pipelines without crashing 2016-03-07 01:57:56 +01:00
cc540dbc3c Implement retry_strategy and add more info to the reconnect event 2016-03-07 01:57:56 +01:00
32172cd291 Use instanceof Array instead of Array.isArray
The reply is being done with a regular array and therefor will be the same array instance
2016-03-01 17:59:17 +01:00
fb0eaf4d41 Unify auth handling 2016-03-01 17:59:17 +01:00
518e46dcc7 Use a own clone function instead of using JSON.parse(JSON.stringify())
This will also clone functions
2016-03-01 17:59:16 +01:00
60eee34de1 Unify command handling 2016-03-01 17:59:16 +01:00
8dcf06754d Add warnings and handle protocol errors gracefuly 2016-03-01 17:59:16 +01:00
5ef24a90b6 Add tests and improve older tests 2015-12-31 06:00:20 +01:00
2cd3818ea9 Fix some minor issues 2015-12-31 06:00:20 +01:00
d9c815dd8c Add retry_unfullfilled_commands option 2015-12-30 16:18:17 +01:00
a4285c156c Parse redis url just like IANA 2015-12-30 16:18:17 +01:00
58ddd51489 Always refresh the server_info after running info; Remove proper auth support for redis < 2.6.11 2015-12-30 16:18:17 +01:00
52f987321a Deprecate stuff 2015-12-30 16:18:17 +01:00
637e59ffc9 Improve arguments parsing 2015-12-30 16:18:17 +01:00
835dc404b7 Explicitly remove a undefined callback from any multi command 2015-12-30 16:18:17 +01:00
f6f5d91709 Deprecate .end() by making the flush parameter mandatory and fix the docs 2015-12-30 16:18:17 +01:00
e89bcec1c2 Deprecate and warn on null / undefined arguments 2015-12-30 16:18:17 +01:00
16a1d69c82 Move parsers into seperate module and improve js parser performance 2015-11-30 13:31:26 +01:00
9ee610d072 emit event "ready" when disable_resubscribing is true 2015-11-26 19:06:05 +01:00
f877c3950c Add prefix option
Fixes #323

Add key prefix tests

Add changelog entry for prefix
2015-11-24 00:23:18 +01:00
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
c74107c972 Add mention of tls option 2015-11-23 16:58:45 +01:00
eae5596a3c Add support for TLS connections 2015-11-23 16:56:37 +01:00
b5fe822553 Add selected_db to the new redis instance if using client.duplicate 2015-11-23 14:38:10 +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
bc85c4a01d Minor hiredis handling improvement 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
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
ff857f97ae Intermediate fix js parser handling big values very slow
Closes #900
2015-11-08 23:05:15 +01:00
c08461f781 Fix typo in debug message 2015-11-06 20:25:46 +01:00
ef238143e9 Fix typo in string conversion. Closes #918 2015-11-06 20:13:12 +01:00
42e979b1af Add changelog entry and add a note in the readme that detect_buffers does not work in pub sub mode 2015-10-30 14:56:30 +01:00
cc93e0b3a7 Fix return_buffers in pub/sub mode (#911) 2015-10-30 16:08:28 +03:00