<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
echo 'Could not connect to redisd server';
CRM_Utils_System::civiExit();
}
- $this->_cache->auth(CIVICRM_DB_CACHE_PASSWORD);
+ if (CRM_Utils_Constant::value('CIVICRM_DB_CACHE_PASSWORD')) {
+ $this->_cache->auth(CIVICRM_DB_CACHE_PASSWORD);
+ }
}
/**
*/
public function get($key) {
$result = $this->_cache->get($this->_prefix . $key);
- return unserialize($result);
+ return ($result === FALSE) ? NULL : unserialize($result);
}
/**