AFDataCache.MinCacheEventsPerAttribute Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The minimum 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 MinCacheEventsPerAttribute { get; set; }
Public Property MinCacheEventsPerAttribute As Integer Get Set Dim instance As AFDataCache Dim value As Integer value = instance.MinCacheEventsPerAttribute instance.MinCacheEventsPerAttribute = value
public: property int MinCacheEventsPerAttribute { int get (); void set (int value); }
member MinCacheEventsPerAttribute : int with get, set
Property Value
Type: Int32The minimum number of cache events to be kept for each AFAttribute in the cache. MinCacheEventsPerAttributes has to be greater than 0 and less than MaxCacheEventsPerAttribute. The default value is 1.
Remarks
CacheTimeSpan, MinCacheEventsPerAttribute and MaxCacheEventsPerAttribute
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.