API Reference
Class
GpoCaches
Provides helpers to warm up and tune in-memory GPO caches used across the library (GUID index, link counts, and link graph). Prewarming reduces LDAP load for runs that execute multiple GPO-related rules.
Inheritance
- Object
- GpoCaches
Methods
public static Void ApplyOptions(Nullable<Int32> linkCacheMaxEntries = null, Nullable<Int32> linkEntryTtlMinutes = null, Nullable<Int32> prewarmTtlMinutes = null, Nullable<Int32> guidIndexTtlMinutes = null, Nullable<Int32> linkMapTtlMinutes = null) #Returns:
VoidApplies GPO cache options (link cache size/TTL, prewarm TTL, index TTLs) in a single call. Null arguments are ignored.
Parameters
- linkCacheMaxEntries System.Nullable{System.Int32} = null
- linkEntryTtlMinutes System.Nullable{System.Int32} = null
- prewarmTtlMinutes System.Nullable{System.Int32} = null
- guidIndexTtlMinutes System.Nullable{System.Int32} = null
- linkMapTtlMinutes System.Nullable{System.Int32} = null
public static GpoCachesStats GetStats() #Returns:
GpoCachesStatsReturns diagnostic information about the current GPO caches (GUID index + link cache).
public static Void WarmUp(Nullable<Int32> ttlMinutes = null) #Returns:
VoidBuilds the forest-wide caches used by GPO queries in a small, fixed number of LDAP calls. Safe to call multiple times; rebuilds when the internal TTL expires.
Parameters
- ttlMinutes System.Nullable{System.Int32} = null
- Optional TTL in minutes for the caches (minimum 1 minute). When null, defaults are used.