multi_set

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

  1. def multi_set(self, hash_key, sortkey_value_dict, ttl=0, timeout=0):
  2. """
  3. Set multiple sort_keys-values under hash_key to be stored.
  4. :param hash_key: (str) which hash key used for this API.
  5. :param sortkey_value_dict: (dict) <sort_key, value> pairs in dict.
  6. :param ttl: (int) ttl(time to live) in seconds of these data.
  7. :param timeout: (int) how long will the operation timeout in milliseconds.
  8. if timeout > 0, it is a timeout value for current operation,
  9. else the timeout value specified to create the instance will be used.
  10. :return: (tuple<error_types.code.value, _>) (code, ign)
  11. code: error_types.ERR_OK.value when data stored succeed.
  12. ign: useless, should be ignored.
  13. """