/**
* Constructor
*
- * @param array $config an array of configuration params
+ * @param array $config an array of configuration params
*
- * @return void
+ * @return \CRM_Utils_Cache_Memcache
*/
function __construct($config) {
if (isset($config['host'])) {
}
}
+ /**
+ * @param $key
+ * @param $value
+ *
+ * @return bool
+ */
function set($key, &$value) {
if (!$this->_cache->set($this->_prefix . $key, $value, FALSE, $this->_timeout)) {
return FALSE;
return TRUE;
}
+ /**
+ * @param $key
+ *
+ * @return mixed
+ */
function &get($key) {
$result = $this->_cache->get($this->_prefix . $key);
return $result;
}
+ /**
+ * @param $key
+ *
+ * @return mixed
+ */
function delete($key) {
return $this->_cache->delete($this->_prefix . $key);
}
+ /**
+ * @return mixed
+ */
function flush() {
return $this->_cache->flush();
}