Decode Memcached keys before returning getMulti result
authorMatthias Mullie <git@mullie.eu>
Wed, 2 Sep 2015 13:02:36 +0000 (15:02 +0200)
committerMatthias Mullie <mmullie@wikimedia.org>
Mon, 7 Sep 2015 05:43:49 +0000 (05:43 +0000)
commit58c81f5b86a454e51af247117d3c0d3adabbc5d4
treebae0edec40016920d29e9e5f7392c4367fd92dca
parent410984bdc79f9e45e865d6bb61079b45f4d7562d
Decode Memcached keys before returning getMulti result

Keys are sent to Memcached encoded. However, getMulti()
will respond in [key => value] format. The keys it
responds with should not be the encoded versions, or
callers won't be able to map them to the results.

Bug: T111138
Change-Id: I0d821b1219a492be8e93453f0249c78f18e24533
includes/objectcache/MemcachedPeclBagOStuff.php
includes/objectcache/MemcachedPhpBagOStuff.php
tests/phpunit/includes/objectcache/BagOStuffTest.php