/** * @return PeclMemcache **/ public function clean() { try { $this->instance->flush(); } catch (BaseException $e) { $this->alive = false; } return parent::clean(); }
/** * @return PeclMemcached **/ public function clean() { $this->ensureTriedToConnect(); try { $this->instance->flush(); } catch (BaseException $e) { $this->alive = false; } return parent::clean(); }
public function clean() { $this->ensureTriedToConnect(); try { $this->redis->flushDB(); } catch (\RedisException $e) { $this->alive = false; } return parent::clean(); }
/** * @return SocketMemcached **/ public function clean() { if (!$this->link) { $this->alive = false; return null; } $this->sendRequest("flush_all\r\n"); // flushing obligatory response - "OK\r\n" fread($this->link, 4); return parent::clean(); }
/** * @return RubberFileSystem **/ public function clean() { // just to return 'true' FileUtils::removeDirectory($this->directory, true); return parent::clean(); }