Class CacheStatCounter.CacheEntryStatistics
Keeps track of the statistics of the cache entry
Inheritance
System.Object
CacheStatCounter.CacheEntryStatistics
Namespace: ImageVault.Common.Data.Caching
Assembly: ImageVault.Common.dll
Syntax
public class CacheEntryStatistics : Object
Constructors
CacheEntryStatistics()
Default constructor
Declaration
public CacheEntryStatistics()
CacheEntryStatistics(CacheStatCounter.CacheEntryStatistics)
Copy constructor
Declaration
public CacheEntryStatistics(CacheStatCounter.CacheEntryStatistics entry)
Parameters
Type | Name | Description |
---|---|---|
CacheStatCounter.CacheEntryStatistics | entry |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
Properties
CacheGainInTime
Compares all requests and estimates the total milliseconds won by the cache.
Declaration
public double CacheGainInTime { get; }
Property Value
Type | Description |
---|---|
System.Double |
CacheGainPerCent
Returns the amount of the miss time that is gained when the cache is hit
Declaration
public double CacheGainPerCent { get; }
Property Value
Type | Description |
---|---|
System.Double |
CacheHits
How many times the cache has returned a cached value
Declaration
public CacheStatCounter.SampleCounter CacheHits { get; }
Property Value
Type | Description |
---|---|
CacheStatCounter.SampleCounter |
CacheMisses
How many times the cache has not been able to deliver a cached item
Declaration
public CacheStatCounter.SampleCounter CacheMisses { get; }
Property Value
Type | Description |
---|---|
CacheStatCounter.SampleCounter |
Key
Key of the cache entry
Declaration
public string Key { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TotalElapsedTime
Total elapsed time in milliseconds for both cache hits and misses
Declaration
public double TotalElapsedTime { get; }
Property Value
Type | Description |
---|---|
System.Double |