Fixes for RedisBagOStuff when using twemproxy
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 15 Sep 2015 19:29:55 +0000 (12:29 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 16 Sep 2015 17:20:38 +0000 (10:20 -0700)
commit45fea5f477223f6aab67cea7ffe0b965564f7ff7
tree0798376f12ed25a1504936ec8a79c1cb8aab3a7d
parentdad14732abc77d9e04b6476d16b12e9e8d99ba02
Fixes for RedisBagOStuff when using twemproxy

* Use the nx/ex flags for the redis SET method
  to implement add() correctly. This also handes a
  prior FIXME comment.
* Made merge() work via locking instead of cas()
  since Redis::MULTI does not work with twemproxy.
  Locking, which uses add(), does, and works better
  than it did before.
* Removed some pointless newlines.

Change-Id: I652bd0ad2c594097d2cb1ab77f291e8bd27ad14f
includes/objectcache/RedisBagOStuff.php