Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFDataCache.MaxCacheEventsPerAttribute Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDataCache.MaxCacheEventsPerAttribute Property
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: Int32
The 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.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in