Interface ISchemeCacheProvider
Extension of ISchemeSyncProvider with metadata cache management methods
Adds capabilities for hot switching, invalidation and cache warmup
public interface ISchemeCacheProvider
Properties
Methods
EstimateMemoryUsage()
Estimate current memory consumption by cache in bytes
long EstimateMemoryUsage()
GetCacheDiagnosticInfo()
Get diagnostic information about cache state
CacheDiagnosticInfo GetCacheDiagnosticInfo()
InvalidateSchemeCache(long)
Clear metadata cache for scheme by ID
void InvalidateSchemeCache(long schemeId)
InvalidateSchemeCache(string)
Clear metadata cache for scheme by name
void InvalidateSchemeCache(string schemeName)
InvalidateSchemeCache<TProps>()
Clear metadata cache for specific C# type
void InvalidateSchemeCache<TProps>() where TProps : class
SetCacheEnabled(bool)
Enable/disable metadata caching on the fly (hot toggle)
void SetCacheEnabled(bool enabled)
WarmupCacheAsync<TProps>()
Preload metadata for C# type
Task WarmupCacheAsync<TProps>() where TProps : class