ZipDataCacheProvider
QuantConnect.Lean.Engine.DataFeeds.ZipDataCacheProvider
ZipDataCacheProvider(
data_provider: IDataProvider,
is_data_ephemeral: bool = True,
cache_timer: float = ...,
)
Bases: Object, IDataCacheProvider
File provider implements optimized zip archives caching facility. Cache is thread safe.
Constructor that sets the IDataProvider used to retrieve data
is_data_ephemeral
is_data_ephemeral: bool
Property indicating the data is temporary in nature and should not be cached.
dispose
dispose() -> None
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
fetch
fetch(key: str) -> Stream
Does not attempt to retrieve any data
get_zip_entries
get_zip_entries(zip_file: str) -> List[str]
Returns a list of zip entries in a provided zip file
store
store(key: str, data: List[int]) -> None
Store the data in the cache.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
The source of the data, used as a key to retrieve data in the cache |
required |
data
|
List[int]
|
The data as a byte array |
required |