multi_del

批量删除一个hashkey下的多条sortkey数据

  1. def multi_del(self, hash_key, sortkey_set, timeout=0):
  2. """
  3. Remove multiple entire <hash_key, sort_key>-values in pegasus.
  4. :param hash_key: (str) which hash key used for this API.
  5. :param sortkey_set: (set) sort keys in set.
  6. :param timeout: (int) how long will the operation timeout in milliseconds.
  7. if timeout > 0, it is a timeout value for current operation,
  8. else the timeout value specified to create the instance will be used.
  9. :return: (tuple<error_types.code.value, int>) (code, count).
  10. code: error_types.ERR_OK.value when data got succeed.
  11. count: count of deleted k-v pairs.
  12. """