AFDataCache.CacheTimeSpan Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The minimum amount of time series data to be kept for each AFAttribute in the cache, as measured by time span.
Namespace: OSIsoft.AF.Data
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public TimeSpan CacheTimeSpan { get; set; }
Public Property CacheTimeSpan As TimeSpan Get Set Dim instance As AFDataCache Dim value As TimeSpan value = instance.CacheTimeSpan instance.CacheTimeSpan = value
public: property TimeSpan CacheTimeSpan { TimeSpan get (); void set (TimeSpan value); }
member CacheTimeSpan : TimeSpan with get, set
Property Value
Type: TimeSpanThe minimum amount of time series data to be kept for each AFAttribute in the cache, as measured by time span. The default time span is 5 minutes.
Remarks
CacheTimeSpan, MinCacheEventsPerAttribute and MaxCacheEventsPerAttribute
properties determine how the AFDataCache trims cache events.
Events more than MaxCacheEventsPerAttribute are trimmed.
Events in excess of MinCacheEventsPerAttribute and CacheTimeSpan are subject to trimming.
The trimming properties apply to all AFAttributes in the same AFDataCache.