From: Aaron Schulz Date: Wed, 13 May 2015 05:33:57 +0000 (-0700) Subject: objectcache: Add WANObjectCache::TTL_NONE constant for readability X-Git-Tag: 1.31.0-rc.0~11418^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=e941534195ca9bc76b73598a6b8ad63008e20e59;p=lhc%2Fweb%2Fwiklou.git objectcache: Add WANObjectCache::TTL_NONE constant for readability Change-Id: I07592ebb2794a7a8efc0fd1d718c1b5ca3d9b83f --- 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;