sort_key_count

获取一个hashkey下的sortkey数量

  1. def sort_key_count(self, hash_key, timeout=0):
  2. """
  3. Get the total sort key count under the hash_key.
  4. :param hash_key: (str) which hash key used for this API.
  5. :param timeout: (int) how long will the operation timeout in milliseconds.
  6. if timeout > 0, it is a timeout value for current operation,
  7. else the timeout value specified to create the instance will be used.
  8. :return: (tuple<error_types.code.value, count>) (code, count)
  9. code: error_types.ERR_OK.value when data got succeed, error_types.ERR_OBJECT_NOT_FOUND.value when data not found.
  10. value: total sort key count under the hash_key.
  11. """