multi_get

同时读一条hashkey的多条sortkey数据

  1. def multi_get(self, hash_key,
  2. sortkey_set,
  3. max_kv_count=100,
  4. max_kv_size=1000000,
  5. no_value=False,
  6. timeout=0):
  7. """
  8. Get multiple values stored in <hash_key, sortkey> pairs.
  9. :param hash_key: (str) which hash key used for this API.
  10. :param sortkey_set: (set) sort keys in set.
  11. :param max_kv_count: (int) max count of k-v pairs to be fetched. max_fetch_count <= 0 means no limit.
  12. :param max_kv_size: (int) max total data size of k-v pairs to be fetched. max_fetch_size <= 0 means no limit.
  13. :param no_value: (bool) whether to fetch value of these keys.
  14. :param timeout: (int) how long will the operation timeout in milliseconds.
  15. if timeout > 0, it is a timeout value for current operation,
  16. else the timeout value specified to create the instance will be used.
  17. :return: (tuple<error_types.code.value, dict>) (code, kvs)
  18. code: error_types.ERR_OK.value when data got succeed.
  19. kvs: <sort_key, value> pairs in dict.
  20. """