public function deleteBlogPost(BlogPostInterface $blog) { $identifier = $blog->getIdentifier(); try { $this->bucket->delete($identifier); } catch (RiakException $ex) { // Retry $this->bucket->delete($identifier); } }
/** * {@inheritdoc} */ protected function doFlush() { try { $keyList = $this->bucket->getKeyList(); foreach ($keyList as $key) { $this->bucket->delete($key); } return true; } catch (Exception\RiakException $e) { // Do nothing } return false; }