From ad0f205feb45f45ba400827043348531f21771d2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 9 Sep 2016 13:41:03 -0700 Subject: [PATCH] Add more version notes to WANObjectCache Change-Id: Ia1b74b568d2b5137c7096a3b4549ac2cd4c7fa93 --- includes/libs/objectcache/WANObjectCache.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index 126a5ed9de..5f6e3249dd 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -410,6 +410,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { * and its as-of time to the callback. This is useful if adaptiveTTL() is used * on the old value's as-of time when it is verified as still being correct. * Default: 0. + * @note Options added in 1.28: staleTTL * @return bool Success */ final public function set( $key, $value, $ttl = 0, array $opts = [] ) { @@ -830,6 +831,7 @@ class WANObjectCache implements IExpiringStore, LoggerAwareInterface { * - ageNew: Consider popularity refreshes only once a key reaches this age in seconds. * Default: WANObjectCache::AGE_NEW. * @return mixed Value found or written to the key + * @note Options added in 1.28: version, busyValue, hotTTR, ageNew, pcGroup, minAsOf * @note Callable type hints are not used to avoid class-autoloading */ final public function getWithSetCallback( $key, $ttl, $callback, array $opts = [] ) { -- 2.20.1