using System;
namespace StellaOps.Provcache;
///
/// Cache statistics for monitoring and diagnostics.
///
public sealed record ProvcacheStatistics
{
///
/// Total number of entries in the cache.
///
public long TotalEntries { get; init; }
///
/// Total number of cache hits.
///
public long TotalHits { get; init; }
///
/// Number of entries expiring within the next hour.
///
public long ExpiringWithinHour { get; init; }
///
/// Number of unique policy hashes.
///
public int UniquePolicies { get; init; }
///
/// Number of unique signer set hashes.
///
public int UniqueSignerSets { get; init; }
///
/// Oldest entry timestamp.
///
public DateTimeOffset? OldestEntry { get; init; }
///
/// Newest entry timestamp.
///
public DateTimeOffset? NewestEntry { get; init; }
}