Improved Redis Support
commit4d7506f265a4fbd68de79b6659d435002356c386
authormaide <ian@maide.ca>
Thu, 6 Mar 2014 05:58:37 +0000 (6 00:58 -0500)
committerSara Golemon <sgolemon@fb.com>
Wed, 12 Mar 2014 00:45:05 +0000 (11 17:45 -0700)
tree208b05b4b585a645669b189dc4ca9d536d0553d6
parent3bbf0c58d515787aea1ea4c2ac41355e62779e5e
Improved Redis Support

I have added support for the Redis 2.6.12+ extended SET (http://redis.io/commands/set) options, as well as the Redis 'watch' command http://redis.io/commands/watch.

However, the use of the watch command seems to cause the multi/exec functionality to hang until connection times out when the key has been changed after being watched. I believe this to be a bug in the handling multi/exec, as all commands in the tests succeed on the server, as witnessed through a redis-cli monitor.

Closes #1998

Reviewed By: @sgolemon

Differential Revision: D1210803
hphp/system/php/redis/Redis.php
hphp/test/slow/ext_redis/setExtended.php [new file with mode: 0644]
hphp/test/slow/ext_redis/setExtended.php.expect [new file with mode: 0644]
hphp/test/slow/ext_redis/watch.php [new file with mode: 0644]
hphp/test/slow/ext_redis/watch.php.expect [new file with mode: 0644]