ItemWrapper
Items are wrapped inside an ItemWrapper to be stored in the cache.
Methods
GetID()
@classmethod
def GetID() - > [ItemID](itemid.md?sid=flytestdlib_cache_itemid)
Retrieves the unique identifier for the wrapped item. Callers use this to identify the specific item within the cache.
Returns
| Type | Description |
|---|---|
[ItemID](itemid.md?sid=flytestdlib_cache_itemid) | The unique identifier of the item. |
GetItem()
@classmethod
def GetItem() - > [Item](item.md?sid=flytestdlib_cache_item)
Retrieves the actual item stored within the wrapper. Callers use this to access the underlying data of the cached item.
Returns
| Type | Description |
|---|---|
[Item](item.md?sid=flytestdlib_cache_item) | The item contained within the wrapper. |