projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NFC] various code cleanup on CRM_Contact_BAO_Query
[civicrm-core.git]
/
CRM
/
Utils
/
Cache
/
Memcache.php
diff --git
a/CRM/Utils/Cache/Memcache.php
b/CRM/Utils/Cache/Memcache.php
index 5bbdf5e0e6c69adc0cf538d6f9e68aa8dfcdca88..511663792e575030897694f495f184a2f505ce73 100644
(file)
--- a/
CRM/Utils/Cache/Memcache.php
+++ b/
CRM/Utils/Cache/Memcache.php
@@
-3,7
+3,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
8
|
+ | Copyright CiviCRM LLC (c) 2004-201
9
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-28,11
+28,12
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
8
+ * @copyright CiviCRM LLC (c) 2004-201
9
*/
class CRM_Utils_Cache_Memcache implements CRM_Utils_Cache_Interface {
*/
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;
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);
}
return ($result !== FALSE);
}
-
/**
* @param $key
*
/**
* @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();
$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,
}
$this->_truePrefix = [
'value' => $value,