From: Aaron Schulz Date: Thu, 8 Oct 2015 22:49:57 +0000 (-0700) Subject: Minor getWithSetCallback() example formatting tweaks X-Git-Tag: 1.31.0-rc.0~9452^2 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=3c021116e4f5969f3931b92ee6041bef97f8ed5c;p=lhc%2Fweb%2Fwiklou.git Minor getWithSetCallback() example formatting tweaks Change-Id: I6fc7164770fbbd32374b01d1aa27dbaa9263c940 --- diff --git a/includes/libs/objectcache/WANObjectCache.php b/includes/libs/objectcache/WANObjectCache.php index 6c69b14fb5..c6949048ba 100644 --- a/includes/libs/objectcache/WANObjectCache.php +++ b/includes/libs/objectcache/WANObjectCache.php @@ -556,8 +556,8 @@ class WANObjectCache { * * return CatConfig::newFromRow( $dbr->selectRow( ... ) ); * }, - * // Calling touchCheckKey() on this key invalidates the cache * array( + * // Calling touchCheckKey() on this key invalidates the cache * 'checkKeys' => array( wfMemcKey( 'site-cat-config' ) ), * // Try to only let one datacenter thread manage cache updates at a time * 'lockTSE' => 30 @@ -581,9 +581,9 @@ class WANObjectCache { * * return CatState::newFromResults( $dbr->select( ... ) ); * }, - * // The "check" keys that represent things the value depends on; - * // Calling touchCheckKey() on any of them invalidates the cache * array( + * // The "check" keys that represent things the value depends on; + * // Calling touchCheckKey() on any of them invalidates the cache * 'checkKeys' => array( * wfMemcKey( 'sustenance-bowls', $cat->getRoomId() ), * wfMemcKey( 'people-present', $cat->getHouseId() ),