*/
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;
return ($result !== FALSE);
}
-
/**
* @param $key
*
$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,