X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FCache%2FMemcache.php;h=511663792e575030897694f495f184a2f505ce73;hb=b832662c49a7a966444dfdd69c6c9b5cae9cc2f1;hp=3e8057c49d8a6c81e95f608a93e482efb6d1ef3f;hpb=8282c3dc7b991acb4665546aae5c18e1adaecf95;p=civicrm-core.git diff --git a/CRM/Utils/Cache/Memcache.php b/CRM/Utils/Cache/Memcache.php index 3e8057c49d..511663792e 100644 --- a/CRM/Utils/Cache/Memcache.php +++ b/CRM/Utils/Cache/Memcache.php @@ -32,7 +32,8 @@ */ class CRM_Utils_Cache_Memcache implements CRM_Utils_Cache_Interface { - use CRM_Utils_Cache_NaiveMultipleTrait; // TODO Consider native implementation. + // TODO Consider native implementation. + use CRM_Utils_Cache_NaiveMultipleTrait; const DEFAULT_HOST = 'localhost'; const DEFAULT_PORT = 11211; @@ -163,7 +164,6 @@ class CRM_Utils_Cache_Memcache implements CRM_Utils_Cache_Interface { return ($result !== FALSE); } - /** * @param $key * @@ -194,7 +194,8 @@ class CRM_Utils_Cache_Memcache implements CRM_Utils_Cache_Interface { $value = $this->_cache->get($key); if ($value === FALSE) { $value = uniqid(); - $this->_cache->set($key, $value, FALSE, 0); // Indefinite. + // Indefinite. + $this->_cache->set($key, $value, FALSE, 0); } $this->_truePrefix = [ 'value' => $value,