MarketDataStorageCache
StockSharp.Algo.Storages
IMarketDataStorage cache.
Properties
Limit
public int Limit { get; set; }
value = marketDataStorageCache.Limit
marketDataStorageCache.Limit = value
Max count.
Methods
GetMessagesAsync``1
public IAsyncEnumerable<Message> GetMessagesAsync<TEnumerable>(SecurityId securityId, DataType dataType, DateTime date, Func<DateTime, TEnumerable> loadIfNeed)
result = marketDataStorageCache.GetMessagesAsync(securityId, dataType, date, loadIfNeed)
Get data asynchronously.
- securityId
- SecurityId.
- dataType
- DataType.
- date
- Date to load.
- loadIfNeed
- Handler to load data from real storage.
Returns: Data.
Invalidate
public void Invalidate(SecurityId securityId, DataType dataType, DateTime date)
marketDataStorageCache.Invalidate(securityId, dataType, date)
Invalidate cache for specified key.
- securityId
- SecurityId.
- dataType
- DataType.
- date
- Date to invalidate.