MarketDataStorageCache
StockSharp.Algo.Storages
IMarketDataStorage cache.
属性
Limit
public int Limit { get; set; }
value = marketDataStorageCache.Limit
marketDataStorageCache.Limit = value
马克思数.
方法
GetMessagesAsync``1
public IAsyncEnumerable<Message> GetMessagesAsync<TEnumerable>(SecurityId securityId, DataType dataType, DateTime date, Func<DateTime, TEnumerable> loadIfNeed)
result = marketDataStorageCache.GetMessagesAsync(securityId, dataType, date, loadIfNeed)
同步获取数据 。
- securityId
- SecurityId.
- dataType
- DataType.
- date
- 装入日期.
- loadIfNeed
- 手持器从真实存储中装入数据 。
返回值: 数据。
Invalidate
public void Invalidate(SecurityId securityId, DataType dataType, DateTime date)
marketDataStorageCache.Invalidate(securityId, dataType, date)
无效指定密钥缓存 。
- securityId
- SecurityId.
- dataType
- DataType.
- date
- 失效日期。