del

删除单条数据

  1. ///
  2. /// \brief del
  3. /// del stored k-v by key from cluster
  4. /// key is composed of hashkey and sortkey. must provide both to get the value.
  5. /// \param hashkey
  6. /// used to decide from which partition to del this k-v
  7. /// \param sortkey
  8. /// all the k-v under hashkey will be sorted by sortkey.
  9. /// \param timeout_milliseconds
  10. /// if wait longer than this value, will return time out error
  11. /// \return
  12. /// int, the error indicates whether or not the operation is succeeded.
  13. /// this error can be converted to a string using get_error_string()
  14. ///
  15. virtual int del(const std::string &hashkey,
  16. const std::string &sortkey,
  17. int timeout_milliseconds = 5000,
  18. internal_info *info = NULL) = 0;