Path: redb/redb.Core/Caching/CacheDiagnosticInfo.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Caching/CacheDiagnosticInfo.cs ---- using System.Collections.Generic; namespace redb.Core.Caching { /// /// Cache diagnostic information, returned by /// . /// /// /// These four types used to live in ICompositeMetadataCache.cs, alongside a layer of cache /// interfaces that was never implemented and never consumed. That layer was removed; these /// carried on being part of a live public contract, so they moved here unchanged. /// public class CacheDiagnosticInfo { /// /// Cache health status. /// public CacheHealthStatus HealthStatus { get; set; } /// /// Potential issues. /// public List Issues { get; set; } = new(); /// /// Optimization recommendations. /// public List Recommendations { get; set; } = new(); /// /// Memory information. /// public MemoryUsageInfo MemoryInfo { get; set; } = new(); /// /// Performance information. /// public PerformanceInfo PerformanceInfo { get; set; } = new(); } /// /// Cache health status enumeration. /// public enum CacheHealthStatus { /// Cache is healthy. Healthy, /// Cache has warnings. Warning, /// Cache is in critical state. Critical, /// Cache status is unknown. Unknown } /// /// Cache memory usage information. /// public class MemoryUsageInfo { /// /// Used memory in bytes. /// public long UsedBytes { get; set; } /// /// Maximum memory in bytes (if limited). /// public long? MaxBytes { get; set; } /// /// Memory usage percentage. /// public double UsagePercentage { get; set; } /// /// Memory fragmentation percentage (if available). /// public double? FragmentationPercentage { get; set; } } /// /// Cache performance information. /// public class PerformanceInfo { /// /// Average cache access time in milliseconds. /// public double AverageAccessTimeMs { get; set; } /// /// Average data source load time in milliseconds. /// public double AverageLoadTimeMs { get; set; } /// /// Operations per second. /// public double OperationsPerSecond { get; set; } /// /// Peak access time in milliseconds. /// public double PeakAccessTimeMs { get; set; } } }