Table of Contents

Class TcgDexCacheStatistics

Namespace
TcgDex.Caching
Assembly
TcgDex.CSharpSdk.dll

How the response cache has been answering requests.

public sealed class TcgDexCacheStatistics

Inheritance

Inherited Members

Remarks

AddTcgDexWithCaching registers one instance as a singleton, so inject it to watch the cache. It belongs to the container rather than to a handler because IHttpClientFactory rebuilds handlers every two minutes; counts kept on the handler started again from zero at every rebuild.

Counts are read and written atomically, so a 32-bit process never sees a torn value.

Properties

FreshHits

Number of responses served without any network request.

public long FreshHits { get; }

Property Value

long

Misses

Number of requests that went to the API in full.

public long Misses { get; }

Property Value

long

Revalidations

Number of entries refreshed by a 304 instead of a re-download.

public long Revalidations { get; }

Property Value

long