|
Lean
$LEAN_TAG$
|
Simple data cache provider, writes and reads directly from disk Used as default for LeanDataWriter More...
Public Member Functions | |
| DiskDataCacheProvider () | |
| Creates a new instance More... | |
| DiskDataCacheProvider (KeyStringSynchronizer locker) | |
| Creates a new instance using the given synchronizer More... | |
| Stream | Fetch (string key) |
| Fetch data from the cache More... | |
| void | Store (string key, byte[] data) |
| Store the data in the cache. Not implemented in this instance of the IDataCacheProvider More... | |
| List< string > | GetZipEntries (string zipFile) |
| Returns a list of zip entries in a provided zip file More... | |
| void | Dispose () |
| Dispose for this class More... | |
Public Attributes | |
| bool | IsDataEphemeral => false |
| Property indicating the data is temporary in nature and should not be cached. More... | |
Additional Inherited Members | |
Properties inherited from QuantConnect.Interfaces.IDataCacheProvider | |
| bool | IsDataEphemeral [get] |
| Property indicating the data is temporary in nature and should not be cached More... | |
Simple data cache provider, writes and reads directly from disk Used as default for LeanDataWriter
Definition at line 31 of file DiskDataCacheProvider.cs.
| QuantConnect.Data.DiskDataCacheProvider.DiskDataCacheProvider | ( | ) |
Creates a new instance
Definition at line 43 of file DiskDataCacheProvider.cs.
| QuantConnect.Data.DiskDataCacheProvider.DiskDataCacheProvider | ( | KeyStringSynchronizer | locker | ) |
Creates a new instance using the given synchronizer
| locker | The synchronizer instance to use |
Definition at line 51 of file DiskDataCacheProvider.cs.
| Stream QuantConnect.Data.DiskDataCacheProvider.Fetch | ( | string | key | ) |
Fetch data from the cache
| key | A string representing the key of the cached data |
Implements QuantConnect.Interfaces.IDataCacheProvider.
Definition at line 61 of file DiskDataCacheProvider.cs.
| void QuantConnect.Data.DiskDataCacheProvider.Store | ( | string | key, |
| byte[] | data | ||
| ) |
Store the data in the cache. Not implemented in this instance of the IDataCacheProvider
| key | The source of the data, used as a key to retrieve data in the cache |
| data | The data as a byte array |
Implements QuantConnect.Interfaces.IDataCacheProvider.
Definition at line 113 of file DiskDataCacheProvider.cs.
| List<string> QuantConnect.Data.DiskDataCacheProvider.GetZipEntries | ( | string | zipFile | ) |
Returns a list of zip entries in a provided zip file
Implements QuantConnect.Interfaces.IDataCacheProvider.
Definition at line 126 of file DiskDataCacheProvider.cs.
| void QuantConnect.Data.DiskDataCacheProvider.Dispose | ( | ) |
Dispose for this class
Definition at line 138 of file DiskDataCacheProvider.cs.
| bool QuantConnect.Data.DiskDataCacheProvider.IsDataEphemeral => false |
Property indicating the data is temporary in nature and should not be cached.
Definition at line 38 of file DiskDataCacheProvider.cs.