objectcache: Refresh key in HashBagOStuff::set() for maxKeys eviction
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 3 Nov 2015 05:59:07 +0000 (05:59 +0000)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 3 Nov 2015 09:59:30 +0000 (01:59 -0800)
commit4ec550812bdc15cd5622f5099af39fb05c1c46a2
treeb08c05f22e6709c0e0ea69db530606bf6948101a
parentc7fc73286d39a2ca848ee00a588fbccd23a850d3
objectcache: Refresh key in HashBagOStuff::set() for maxKeys eviction

* Match behaviour of MapCacheLRU and ProcessCacheLRU.
* Add missing unit tests for TTL and maxCacheKeys eviction behaviour.

Change-Id: I559eae1cd336274b21728e86775cfbad7e2f2c6d
includes/libs/objectcache/HashBagOStuff.php
tests/phpunit/includes/libs/objectcache/HashBagOStuffTest.php