Class CacheStatCounter
Class for keeping track of statistics
Inheritance
System.Object
CacheStatCounter
Namespace: ImageVault.Common.Data.Caching
Assembly: ImageVault.Common.dll
Syntax
public class CacheStatCounter : Object
Constructors
CacheStatCounter()
Declaration
public CacheStatCounter()
Fields
Instance
Singleton instance
Declaration
public static CacheStatCounter Instance
Field Value
| Type | Description |
|---|---|
| CacheStatCounter |
Properties
Enabled
Controls if the cache statistics should be enabled or not
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
GetCacheStatistics()
Gets a list of all collected cache statistics
Declaration
public IList<CacheStatCounter.CacheEntryStatistics> GetCacheStatistics()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IList<CacheStatCounter.CacheEntryStatistics> |
Record(Type, String)
Records a cache request
Declaration
public CacheStatCounter.ICacheStatRecord Record(Type type, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | type | Type of the cache to measure |
| System.String | name | Name of the item in the cache to measure |
Returns
| Type | Description |
|---|---|
| CacheStatCounter.ICacheStatRecord |