objectcache: Add TTL_INDEFINITE to IExpiringStore
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 3 Nov 2015 06:36:06 +0000 (06:36 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 3 Nov 2015 06:36:06 +0000 (06:36 +0000)
commit03b281d55bbafd5746db580676beed9c262261b6
tree7ffe78ce49295571ad98432ef93d7cf96f0b8aa4
parent8a133d6adf7ef103abe73924e956a60f25e156cd
objectcache: Add TTL_INDEFINITE to IExpiringStore

Especially useful when interacting with getWithSetCallback of
HashBagOStuff where a $exptime is required before the callback.

In set() it is typically left out and thus not as counter-intuitive.

Change-Id: Ic2f7adda3c00cefe701d77bea91a7e8e77ef1439
includes/libs/objectcache/HashBagOStuff.php
includes/libs/objectcache/IExpiringStore.php
includes/libs/objectcache/WANObjectCache.php