_cache = array(); } /** * @param string $key * @param mixed $value */ public function set($key, &$value) { $this->_cache[$key] = $value; } /** * @param string $key * * @return mixed */ public function get($key) { return CRM_Utils_Array::value($key, $this->_cache); } /** * @param string $key */ public function delete($key) { unset($this->_cache[$key]); } public function flush() { unset($this->_cache); $this->_cache = array(); } }