Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTable.CacheInterval Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTable.CacheInterval Property
The table's cached data automatic refresh interval.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public TimeSpan CacheInterval { get; set; }
Public Property CacheInterval As TimeSpan
	Get
	Set

Dim instance As AFTable
Dim value As TimeSpan

value = instance.CacheInterval

instance.CacheInterval = value
public:
property TimeSpan CacheInterval {
	TimeSpan get ();
	void set (TimeSpan value);
}
member CacheInterval : TimeSpan with get, set

Property Value

Type: TimeSpan
The amount of time until the table's cached data is automatically refreshed. The default value is TimeSpan.Zero which means that automatic refresh is disabled.

Remarks

This property controls how often the table's cached data is automatically refreshed. When the table's data is accessed and the specified cache interval has expired, the table's data is automatically updated before returning the table's data value. The Refresh method can be used to manually force the cached data to be updated.
Important note Important
The automatic refresh of the table's data is disabled while the table has changes that have not been saved to the server.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in