Fixes to RedisBagOStuff
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 21 Nov 2013 18:22:48 +0000 (10:22 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 3 Dec 2013 19:56:24 +0000 (11:56 -0800)
commit2ceda41c5783ddc3cfb113db53aee8dbc5a7aa56
tree3366484028d96789b933dee90cfae72ea87e51e1
parent9d3c1767434e7ad4d9a20e744d47de798ce0336e
Fixes to RedisBagOStuff

* Avoid serializing scalars like the memcached client does.
  This means incr/decr can be fast and preserve the TTL.
* Properly call unwatch() in the cas() method.
* Made the expiry set on add() actually atomic.
* Also cleaned up the profiling calls.

bug: 56069
Change-Id: I3e0d1c4888062544c54aef32085f8ce608ff5423
includes/objectcache/RedisBagOStuff.php