DownloadResponse
This class represents the response from a catalog download operation. It provides methods to retrieve information about cached items, including a bit set indicating which requested items were cached, the total size of the cached results, and the count of cached items.
Methods
GetCachedResults()
@classmethod
def GetCachedResults() - > *bitarray.BitSet
Gets a bit set representing which items from the request were cached.
Returns
| Type | Description |
|---|---|
*bitarray.BitSet | A bit set indicating which items from the original request were found in the cache. |
GetResultsSize()
@classmethod
def GetResultsSize() - > int
Gets the total size of the cached result.
Returns
| Type | Description |
|---|---|
int | The total size of the cached results, typically in bytes. |
GetCachedCount()
@classmethod
def GetCachedCount() - > int
A convenience method to retrieve the number of cached items.
Returns
| Type | Description |
|---|---|
int | The count of items that were successfully retrieved from the cache. |