Skip to main content

AutoRefreshWithUpdate

This interface extends AutoRefresh by adding the capability to update an item identified by its ID. It defines a method for performing updates, returning a boolean indicating success.

Methods​


Update()​

@classmethod
def Update(
id: ItemID,
item: [Item](../cache/item.md?sid=flytestdlib_cache_item)
) - > bool

Updates an existing item identified by its ID with new item data. This method is used to modify the properties of an item.

Parameters​

NameTypeDescription
idItemIDThe unique identifier of the item to be updated.
item[Item](../cache/item.md?sid=flytestdlib_cache_item)The new item data to apply to the existing item. This object should contain the updated properties.

Returns​

TypeDescription
boolA boolean indicating whether the update operation was successful (true) or not (false).