AFTable.CacheInterval Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: TimeSpanThe 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.
| The automatic refresh of the table's data is disabled while the table has changes that have not been saved to the server. |