yr.kv_m_write_tx#
- yr.kv_m_write_tx(keys: ~typing.List[str], values: ~typing.List[bytes], m_set_param: ~yr.base_runtime.MSetParam = <yr.base_runtime.MSetParam object>) None[source]#
Deprecated. Retained only for compatibility with legacy batch write APIs. Do not use it in new code.
Provide a Redis-like set storage interface that supports persisting a collection of binary data into the data system.
- Parameters:
keys (List[str]) – Set a set of keys for the saved data to identify the data. Use this key for querying data. It cannot be empty.
values (List[bytes]) – A set of binary data that needs to be stored. The maximum storage limit outside the cloud is
100M.m_set_param (MSetParam, optional) – configuration parameters of mulrit kv write in the data system, including
existence,write_mode,ttl_second` and ``cache_type.
- Returns:
None.
- Raises:
RuntimeError – If kv_m_write_tx is not initialized and called, an exception will be thrown. If data writing to the data system fails.