Path: redb/redb.Core/Caching/PropsCacheStatistics.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/PropsCacheStatistics.cs
----
namespace redb.Core.Caching
{
///
/// Props object cache statistics.
///
public class PropsCacheStatistics
{
///
/// Total cache entries.
///
public int TotalEntries { get; set; }
///
/// Cache hit count.
///
public long HitCount { get; set; }
///
/// Cache miss count.
///
public long MissCount { get; set; }
///
/// Cache hit rate (0.0 - 1.0).
///
public double HitRate => HitCount + MissCount > 0
? HitCount / (double)(HitCount + MissCount)
: 0;
}
}