From e941534195ca9bc76b73598a6b8ad63008e20e59 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 12 May 2015 22:33:57 -0700 Subject: [PATCH] objectcache: Add WANObjectCache::TTL_NONE constant for readability Change-Id: I07592ebb2794a7a8efc0fd1d718c1b5ca3d9b83f --- includes/libs/objectcache/WANObjectCache.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index 3099dcec4c..e1f64bab9f 100755 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -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; -- 2.20.1