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