/** * Flushes all data * * @param string $group Used to differentiate between groups of cache values * @return boolean */ function flush($group = '') { $this->_get_key_version($group); // initialize $this->_key_version $this->_key_version[$group]++; $this->_set_key_version($this->_key_version[$group], $group); // for persistent connections - apply new config to the object // otherwise it will keep old servers list if (!is_null($this->_config)) { if (method_exists($this->_memcache, 'resetServerList')) { $this->_memcache->resetServerList(); } $this->initialize($this->_config); } return true; }