Fixed an unexpected exception bug when reconnecting in pub/sub mode if selected_db is not null

RedisClient might enter pub/sub mode after at least one SELECT command issued.
When reconnecting, the SELECT command is issued after restoring pub_sub_command to true, which causes an exception.
regenerate lib/commands.js
fix require in examples/eval.js
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>
test.js: slowlog. Closes #295

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
Fix #381. slowlog test failure on first run.
Fixing tests for Redis version 2.6.5+ MULTI/EXEC transaction failure compatibility.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
Removing order requirement for KEYS test

Close #378.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
EVAL: allow parameters as an array. Close #368.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
Use first word of multi word commands

Close #363.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
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>
test.js: early return if command not supported
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 b60e001fa08403240a6ecbf0c36d1c08ed8ccd9d.

Conflicts:

	index.js
	test.js
Add hiredis guard to INCR test

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
Fix parser incorrect buffer skip for MULTI/EXEC transaction errors with WATCH.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
Parser should only catch parser errors and bubble the rest to the caller.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
In nested MULTIBULK buffers, correctly recurse on an incomplete read buffer.

Signed-off-by: DTrejo <david.daniel.trejo@gmail.com>
Add retry_max_delay option
- add option
- add test
Adding percentage outputs to diff_multi_bench_output.js
Adding missing dev dependencies to package.json
Amend SCRIPT LOAD test cases