From: Aaron Schulz Date: Fri, 9 Sep 2016 20:41:03 +0000 (-0700) Subject: Add more version notes to WANObjectCache X-Git-Tag: 1.31.0-rc.0~5674^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=ad0f205feb45f45ba400827043348531f21771d2;p=lhc%2Fweb%2Fwiklou.git Add more version notes to WANObjectCache Change-Id: Ia1b74b568d2b5137c7096a3b4549ac2cd4c7fa93 --- 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 = [] ) {