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

AF SDK Reference

AFDataCache Methods

  • Last UpdatedNov 18, 2025
  • 4 minute read
AFDataCache Methods

The AFDataCache type exposes the following members.

Methods

  NameDescription
Public method
Add
Adds a list of AFAttribute objects to be managed by AFDataCache. The AFAttributes are reference counted. Adding AFAttribute that is already in the AFDataCache will increment the reference count and not generate error. Adding the same AFAttribute multiple times will require the same number of Remove call to actually remove the AFAttribute from the AFDataCache.
Public method
Dispose
Release all the resources associated with this AFDataCache, including the AFDataPipe used to populate the cached data.
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
GetDataPipeItemsByPIServer
Get the list of the AFAttribute objects managed by AFDataCache with DataPipe that get data from the passed PIServer.
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetItemUpdateOption
Returns the AFDataCacheUpdateOption for an AFAttribute managed by this AFDataCache
Public method
GetRelatedAttributes
For each AFChangeInfo, finds the subscribed AFAttributes that might be impacted by the change.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
ObservePendingChanges
Observes a set of changes from the server and prepares to update the AFDataPipe to reflect them.
Public method
ProcessAppliedChanges
Updates the AFDataPipe to reflect previously observed changes.
Public method
Remove
Remove a list of AFAttribute objects from the data cache.
Public method
ResetCounters
Reset AFDataCache statistic counters.
Public method
Subscribe
Register an IObserver to receive AFDataPipeEvents that are a result of the internal AFDataPipe used within the data cache for auto-monitored attributes.
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method
TrimData(AFAttribute, AFTime)
Trims any cached data for the AFAttribute at or before the specified AFTime.
Public method
TrimData(AFAttribute, AFTime, Int32)
Trims cached data for the AFAttribute while maintaining coverage for events from a specified time.
Public method
TryGetItem
Returns the cache enabled AFData object for a given AFAttribute.
Public method
UpdateData
Update the time series cache for the attributes managed by this AFDataCache.
Public method
UpdateData(Boolean)
Update the time series cache for the attributes managed by this AFDataCache.
Public method
UpdateData(AFTime)
Update the time series cache for the attributes managed by this AFDataCache.
Public method
UpdateData(AFTime, Boolean)
Update the time series cache for the attributes managed by this AFDataCache.
Public method
WriteToCache(AFAttribute, IListAFValue)
Initialize the data cache of the AFAttribute with passed values. The AFAttribute must already be added to the AFDataCache with Manual or ManualRange.
Public method
WriteToCache(AFValue, AFUpdateOption)
Writes value to the data cache. The AFAttribute property of the passed AFValue is the key to lookup the data cache. This AFAttribute must already be added to the AFDataCache with Manual or ManualRange.

See Also

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