AFDataCache.MaxCacheEventsPerAttribute Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The maximum number of cache events to be kept for each AFAttribute in the cache.
Namespace: OSIsoft.AF.Data
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public int MaxCacheEventsPerAttribute { get; set; }
Public Property MaxCacheEventsPerAttribute As Integer Get Set Dim instance As AFDataCache Dim value As Integer value = instance.MaxCacheEventsPerAttribute instance.MaxCacheEventsPerAttribute = value
public: property int MaxCacheEventsPerAttribute { int get (); void set (int value); }
member MaxCacheEventsPerAttribute : int with get, set
Property Value
Type: Int32The maximum number of cache events to be kept for each AFAttribute in the cache. MaxCacheEventsPerAttributes must be greater than MinCacheEventsPerAttribute. The default value is 1024.
Remarks
CacheTimeSpan, MinCacheEventsPerAttribute and MaxCacheEventsPerAttribute
Events more than MaxCacheEventsPerAttribute would be trimmed.
Events in excess of MinCacheEventsPerAttribute and CacheTimeSpan are subject to trimming.
The trimming properties apply to all AFAttributes in the same AFDataCache.