objectcache: Move WANObjectCache holdoff from get() to purge value
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 2 Dec 2015 15:08:42 +0000 (15:08 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 2 Dec 2015 21:33:04 +0000 (21:33 +0000)
commit4b7f59bdcc82cb8c1254df6c46a6c6e2b228db86
tree60a0385bc81513212c785b2749ce1e1cf7fc55f3
parentcf0ba4457349d367e9a0958b62ffc0953f41b994
objectcache: Move WANObjectCache holdoff from get() to purge value

Move the holdoff period into the purge value instead of deciding
it at runtime. This opens the way for touchCheckKey() to support
a custom $holdoff parameter, which will allow callers to invalidate
keys without a holdoff period. Similar to what we already support
in delete().

Right now the holdoff period is decided at run time.

Change-Id: Id10c036272e92ae4429effc823b75e08fb11a48b
includes/libs/objectcache/WANObjectCache.php