multi_del

删除多条数据

  1. ///
  2. /// \brief multi_del
  3. /// delete multiple value by key from the cluster.
  4. /// \param hashkey
  5. /// used to decide which partition to get this k-v
  6. /// \param sortkeys
  7. /// all the k-v under hashkey will be sorted by sortkey. should not be empty.
  8. /// \param deleted_count
  9. /// return count of deleted k-v pairs.
  10. /// \param timeout_milliseconds
  11. /// if wait longer than this value, will return time out error
  12. /// \return
  13. /// int, the error indicates whether or not the operation is succeeded.
  14. /// this error can be converted to a string using get_error_string().
  15. ///
  16. virtual int multi_del(const std::string &hashkey,
  17. const std::set<std::string> &sortkeys,
  18. int64_t &deleted_count,
  19. int timeout_milliseconds = 5000,
  20. internal_info *info = NULL) = 0;