FlushCache;
The FlushCache method is used to flush dimension cache for time series database workbook.
FlushCache flushes the measurement cache without reopening the workbook and updating the data.
Executing this example requires a form with the Button1 button, the LanerBox component named LanerBox1 and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source for LanerBox. Workbook of the time series database must be loaded to UiErAnalyzer1.
Click the button to start executing this example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
Begin
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
Laner.FlushCache;
End Sub Button1OnClick;
After executing the example the cache of the loaded time series database workbook is refreshed.
See also: