def message_cache_items(items_for_remote_cache: Dict[Text, Tuple[bytes]], message: Message) -> None: ''' Note: this code is untested, and the caller has been commented out for a while. ''' key = to_dict_cache_key_id(message.id) value = MessageDict.to_dict_uncached(message) items_for_remote_cache[key] = (value,)
def message_cache_items(items_for_remote_cache: Dict[str, Tuple[bytes]], message: Message) -> None: """ Note: this code is untested, and the caller has been commented out for a while. """ key = to_dict_cache_key_id(message.id) value = MessageDict.to_dict_uncached([message])[message.id] items_for_remote_cache[key] = (value, )
def message_cache_items(items_for_remote_cache, message): # type: (Dict[Text, Tuple[bytes]], Message) -> None ''' Note: this code is untested, and the caller has been commented out for a while. ''' key = to_dict_cache_key_id(message.id) value = MessageDict.to_dict_uncached(message) items_for_remote_cache[key] = (value, )