Interface ISchemeCacheProvider

Assembly: redb.Core.dll

Extension of ISchemeSyncProvider with metadata cache management methods
Adds capabilities for hot switching, invalidation and cache warmup

public interface ISchemeCacheProvider

Properties

IsCacheEnabled

Check if caching is enabled

bool IsCacheEnabled { get; }

Methods

EstimateMemoryUsage()

Estimate current memory consumption by cache in bytes

long EstimateMemoryUsage()

GetCacheDiagnosticInfo()

Get diagnostic information about cache state

CacheDiagnosticInfo GetCacheDiagnosticInfo()

GetCacheStatistics()

Get detailed cache performance statistics

CacheStatistics GetCacheStatistics()

InvalidateCache()

Complete clearing of all metadata caches

void InvalidateCache()

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

ResetCacheStatistics()

Reset cache statistics (zero out counters)

void ResetCacheStatistics()

SetCacheEnabled(bool)

Enable/disable metadata caching on the fly (hot toggle)

void SetCacheEnabled(bool enabled)

WarmupAllSchemesAsync()

Preload metadata for all known schemes

Task WarmupAllSchemesAsync()

WarmupCacheAsync(Type[])

Preload metadata for array of C# types

Task WarmupCacheAsync(Type[] types)

WarmupCacheAsync<TProps>()

Preload metadata for C# type

Task WarmupCacheAsync<TProps>() where TProps : class