objectcache: Add changeTTL() method
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 12 Aug 2016 02:26:21 +0000 (19:26 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 12 Aug 2016 02:55:32 +0000 (19:55 -0700)
commit55f6639c2ea7071f7f590760502fe5b1838db8ca
tree9e8f93d9866c47114a1c99c9ebd3cf26665ca20b
parentb261587fd71b6f7b5b790a88e0f82c84e737b8af
objectcache: Add changeTTL() method

This can change the TTL without fetching the object
so that keys can be renewed or set to expire soon.

Change-Id: Id1c2c9f89b3445cfa34263057dc5029cbe170833
includes/libs/objectcache/BagOStuff.php
includes/libs/objectcache/MemcachedBagOStuff.php
includes/libs/objectcache/MemcachedClient.php
includes/objectcache/MemcachedPeclBagOStuff.php
includes/objectcache/RedisBagOStuff.php
tests/phpunit/includes/libs/objectcache/BagOStuffTest.php