Property Count
Count
Gets the number of items stored in the cache.
Declaration
public virtual long Count { get; }
Property Value
Type | Description |
---|---|
System.Int64 | The number of items stored in the cache. |
Remarks
This property can be useful when monitoring your application's performance or when using ASP.NET tracing functionality.
Note: In a partitioned cluster this operation is an expensive one as it might result in network calls. It is therefore advised to use this property only when required.
Note: If exceptions are enabled through the ExceptionsEnabled setting, this property throws exception in case of failure.