IAFSearch(T).CacheInterval Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The search's cached automatic refresh interval.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
TimeSpan CacheInterval { get; set; }
Property CacheInterval As TimeSpan Get Set Dim instance As IAFSearch Dim value As TimeSpan value = instance.CacheInterval instance.CacheInterval = value
property TimeSpan CacheInterval { TimeSpan get (); void set (TimeSpan value); }
abstract CacheInterval : TimeSpan with get, set
Property Value
Type: TimeSpanThe amount of time until the search's cached items are automatically refreshed. Specify a value of TimeSpan.Zero to disable automatic refresh of the search. The default value is TimeSpan.Zero which disables automatic refresh.
Remarks
This property controls how often the search's cached items are automatically refreshed.
When the specified cache interval has expired, the cached search is automatically updated
before returning the next page of results. Negative values are handled the same as a zero timespan.
The Refresh method can be used to manually force the cached search to be updated.