Add more version notes to WANObjectCache
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 9 Sep 2016 20:41:03 +0000 (13:41 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 9 Sep 2016 20:41:03 +0000 (13:41 -0700)
Change-Id: Ia1b74b568d2b5137c7096a3b4549ac2cd4c7fa93

includes/libs/objectcache/WANObjectCache.php

index 126a5ed..5f6e324 100644 (file)
@@ -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 = [] ) {