Ruben Bridgewater
d7c31da598
chore: add callback functionality back in
...
This also improves the performance for multi / batch commands a lot.
The reason is that now there are only callbacks internally even if
a promise is going to be returned in the end.
2017-11-29 19:16:40 -02:00
Ruben Bridgewater
2b4ab10305
chore - remove standard and use individual config
...
Standard is not as up to date and still uses a old eslint version.
Instead, use the airbnb default with a couple of modifications.
All required changes are included.
2017-11-28 21:38:21 -02:00
Ruben Bridgewater
53d5f46fb1
chore: rename files
2017-05-31 00:01:25 +02:00
Ruben Bridgewater
581d4a29f3
chore: improve coverage further
2017-05-30 07:28:43 +02:00
Ruben Bridgewater
265ce48af4
chore: minor refactoring
2017-05-30 00:44:57 +02:00
Ruben Bridgewater
0276e15f04
chore: add print helper again and refactor some code
...
Expose the RedisClient directly instead of only being a property
2017-05-29 18:23:24 +02:00
Ruben Bridgewater
b2e18344d9
chore: mark private variables as such and remove obsolete ones
2017-05-28 07:15:20 +02:00
Ruben Bridgewater
5fef7e246d
chore: refactor client to es6 class and sort requires
2017-05-28 05:43:34 +02:00
Ruben Bridgewater
8c63233968
feat: parse info data as numbers if possible and improve parsing
2017-05-28 01:45:19 +02:00
Ruben Bridgewater
8da9e98fe6
chore: refactor flush and error
2017-05-28 01:45:18 +02:00
Ruben Bridgewater
3065e2e7be
chore: refactor parts out of the index.js file
2017-05-26 18:45:52 +02:00
Ruben Bridgewater
6794478066
chore: remove let due to performance reasons
2017-05-26 18:17:26 +02:00
Ruben Bridgewater
cd8f2d27c1
chore: use es6 for multi
2017-05-26 12:32:05 +02:00
Ruben Bridgewater
54671f6c52
chore: use arrow functions
2017-05-26 12:32:04 +02:00
Ruben Bridgewater
6ea202132b
feat: accept Map and Set and flatten arguments
2017-05-26 12:32:04 +02:00
Ruben Bridgewater
4182059b7c
chore: improve debug statements
2017-05-26 10:28:27 +02:00
Ruben Bridgewater
6be5575c5b
chore: refactor codebase to promises
2017-05-19 06:14:29 +02:00
Ruben Bridgewater
b2613b2270
test fixup
2017-05-06 08:16:19 +02:00
Ruben Bridgewater
f1a7bcd735
chore: use standard
2017-05-06 07:06:52 +02:00
Ruben Bridgewater
19f3d20b47
chore: remove support for UPPER_CASE commands
2017-05-06 01:49:48 +02:00
Ruben Bridgewater
086c90d938
doc: fix typos
2017-05-06 01:49:46 +02:00
Ruben Bridgewater
28afc33c9a
Remove snack_case and always use camelCase
2017-05-06 01:49:05 +02:00
Ruben Bridgewater
77281cadad
fix: always copy subscribe unsubscribe arguments
2017-05-05 18:41:04 +02:00
Ruben Bridgewater
25aa8f6710
Fix monitoring mode not always activating soon enough
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
8b6f2dd35e
Refactor command parsing
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
ffaaf0f6d5
Add name property to all Redis functions
2016-05-29 01:38:34 +02:00
Ruben Bridgewater
03f1a606f7
Improve error handling
...
Added individual error classes
Don't silently fail for commands without callback from now on
General polishing (e.g. better error messages)
Fix typos
2016-04-29 04:31:39 +02:00
Ruben Bridgewater
eae16938cd
Add monitor transaction warning / error
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
f7c4d131be
Remove jshint comments and update istanbul comments
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
97ae78877b
Implement CLIENT REPLY ON|OFF|SKIP
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
3038c9043d
Make sure all individual handled command work in multi context the same
...
Fix quit possibly resulting in reconnections
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
0424cb0bf3
Move pub sub command into individual commands and use call_on_write
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
a9d565b8f4
Fix auth regression
...
Fixes #1028
2016-04-29 04:10:23 +02:00
Ruben Bridgewater
14170f9d02
Improve tests a bit
...
Reduce timeouts if possible
Extend timeouts if needed (windows tests need their time)
Don't expose the redis socket to others than the owner
Don't create the stunnel log
2016-04-01 11:42:22 +02:00
Ruben Bridgewater
861749f4d6
Fix send_command working with hooked internal functions
2016-03-31 19:23:46 +02:00
Ruben Bridgewater
48481552c9
Calling quit should always close the connection
2016-03-27 05:18:38 +02:00
Ruben Bridgewater
344291a98a
Fix monitoring mode
2016-03-25 16:09:20 +01:00
Ruben Bridgewater
359820c766
Support redis 2.4 info command
...
Fixes #1008
2016-03-16 23:50:29 +01:00
Ruben Bridgewater
eb9500bb9f
Fix redis 2.4 auth support
2016-03-16 23:15:21 +01:00
Ruben Bridgewater
24e7486a5a
Fix forgotten optional info section
...
Fixes #1003
2016-03-15 09:59:09 +01:00
Ruben Bridgewater
614e35ab57
Move multi; commands; createClient code into separate files
2016-03-07 01:57:56 +01:00