async_del

异步删除单条数据

  1. ///
  2. /// \brief asynchronous 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. /// will not be blocked, return immediately.
  6. /// \param hashkey
  7. /// used to decide from which partition to del this k-v
  8. /// \param sortkey
  9. /// all the k-v under hashkey will be sorted by sortkey.
  10. /// \param callback
  11. /// the callback function will be invoked after operation finished or error occurred.
  12. /// \param timeout_milliseconds
  13. /// if wait longer than this value, will return time out error
  14. /// \return
  15. /// void.
  16. ///
  17. virtual void async_del(const std::string &hashkey,
  18. const std::string &sortkey,
  19. async_del_callback_t &&callback = nullptr,
  20. int timeout_milliseconds = 5000) = 0;