AFGlobalSettings.CacheTime Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The length of time, in seconds, that AF SDK objects will be kept in the cache,
provided there is room based on the MaxObjects property.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static int CacheTime { get; set; }
Public Shared Property CacheTime As Integer Get Set Dim value As Integer value = AFGlobalSettings.CacheTime AFGlobalSettings.CacheTime = value
public: static property int CacheTime { int get (); void set (int value); }
static member CacheTime : int with get, set
Property Value
Type: Int32The number of seconds that the AF SDK will keep objects in its cache. Specify a value of zero to have no cache.
Remarks
The default value for this property is read from the SDK's configuration file in the OSI directory under the CommonApplicationData directory. This default value will be the default for all clients executed on the computer. If this property is modified in the client, then it will only affect the current client and the modified value will not be persisted.