MarketDataStorageCache

StockSharp.Algo.Storages

IMarketDataStorageキャッシュ。

プロパティ

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
代表取締役社長 佐藤 浩
dataType
代表取締役社長 佐藤 浩
date
読み込み日
loadIfNeed
ハンドルは、実際のストレージからデータをロードします。

戻り値: データ。

GetMessagesAsync``1
public IAsyncEnumerable<Message> GetMessagesAsync<TEnumerable>(string scope, DateTime date, Func<DateTime, TEnumerable> loadIfNeed)
result = marketDataStorageCache.GetMessagesAsync(scope, date, loadIfNeed)

Get data of a day asynchronously for data that is not one series of one security: a day of several series replayed together, named by what they are.

scope
What the data of the day is made of; the same day of different data is cached apart.
date
Date to load.
loadIfNeed
Handler to load data from real storage.

戻り値: Data.

Invalidate
public void Invalidate(SecurityId securityId, DataType dataType, DateTime date)
marketDataStorageCache.Invalidate(securityId, dataType, date)

指定されたキーのキャッシュを無効化します。

securityId
代表取締役社長 佐藤 浩
dataType
代表取締役社長 佐藤 浩
date
無効化の日付。