Made WANObjectCache::get() comments more accurate
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 15 Aug 2015 19:33:58 +0000 (12:33 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 15 Aug 2015 19:33:58 +0000 (12:33 -0700)
Change-Id: I531c2dca6b552a6b3732d2506e7373c7d17b4b4c

includes/libs/objectcache/WANObjectCache.php

index e8837b3..62b9296 100644 (file)
@@ -128,9 +128,9 @@ class WANObjectCache {
         * Fetch the value of a key from cache
         *
         * If passed in, $curTTL is set to the remaining TTL (current time left):
-        *   - a) INF; if the key exists and has no TTL
-        *   - b) float (>=0); if the key exists and has a TTL
-        *   - c) float (<0); if the key is tombstoned or expired by $checkKeys
+        *   - a) INF; if the key exists, has no TTL, and is not expired by $checkKeys
+        *   - b) float (>=0); if the key exists, has a TTL, and is not expired by $checkKeys
+        *   - c) float (<0); if the key is tombstoned or existing but expired by $checkKeys
         *   - d) null; if the key does not exist and is not tombstoned
         *
         * If a key is tombstoned, $curTTL will reflect the time since delete().