objectcache: convert APC and hash BagOStuff to using mergeViaCas()
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 20 Mar 2019 17:57:02 +0000 (10:57 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 20 Mar 2019 20:58:10 +0000 (13:58 -0700)
commit6812712bd69f8c52162bc4cc5e1df42b3c0cb46f
treea1624a141d663bc6ac3ba027fd80676f7adfce1c
parent8c92400909c74dff595d24a092f5965155530a48
objectcache: convert APC and hash BagOStuff to using mergeViaCas()

This way, the $attempts parameter to merge() is respected and locks
are not held while possibly slow callbacks might run.

Also renamed confusingly named serialization functions in HashBagOStuff.

Change-Id: Id031d82e0a7c941936f04d2cdf590a6296777cf8
includes/libs/objectcache/APCBagOStuff.php
includes/libs/objectcache/APCUBagOStuff.php
includes/libs/objectcache/HashBagOStuff.php