objectcache: Add WANObjectCache::TTL_NONE constant for readability
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 13 May 2015 05:33:57 +0000 (22:33 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 13 May 2015 13:37:11 +0000 (13:37 +0000)
Change-Id: I07592ebb2794a7a8efc0fd1d718c1b5ca3d9b83f

includes/libs/objectcache/WANObjectCache.php

index 3099dce..e1f64ba 100755 (executable)
@@ -74,6 +74,9 @@ class WANObjectCache {
        /** Seconds to keep lock keys around */
        const LOCK_TTL = 5;
 
+       /** Idiom for set()/getWithSetCallback() TTL */
+       const TTL_NONE = 0;
+
        /** Cache format version number */
        const VERSION = 1;