Gets the number of items stored in the cache.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
C# |
---|
public virtual long Count { get; } |
Visual Basic |
---|
Public Overridable ReadOnly Property Count As Long Get |
Visual C++ |
---|
public: virtual property long long Count { long long get (); } |
Field Value
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 incase of failure.