Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)
Specifies the private cache directory if caching is used.
Public Sub SetPrivateCacheDir( directory As String )
public void SetPrivateCacheDir( string directory );
If not defined in the Swiff Chart Generator Control Panel, the default private cache directory is set to the public cache.
The public cache directory stores the index files necessary for charts caching. For security reasons, you
may want to stores these index files (which record private parameters) in a directory that is not
accessible by web users.
This directory can be anywhere on your server.
This method overrides the Private Cache Directory parameter value in the Swiff Chart Generator Control Panel as well as in the swfchart.ini configuration file
The following code illustrates use of the SetPrivateCacheDir method.
' Create the chart series chart.SetDataFromTxtFile("C:\\myData.txt") chart.LoadStyle("C:\\myStyle.scs") ' Set a custom private cache directory chart.SetPrivateCacheDir("D:\\swfchart\\private_cache")
// Create the chart series chart.SetDataFromTxtFile("C:\\myData.txt"); chart.LoadStyle("C:\\myStyle.scs"); // Set a custom private cache directory chart.SetPrivateCacheDir("D:\\swfchart\\private_cache");
SetCacheName Method | SetMaxCacheSize Method | ClearCache Method | UseCache Method
Applies To: Chart Object