Gets the number of items stored in the cache.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: (


public virtual long Count { get; }
Visual Basic
Public Overridable ReadOnly Property Count As Long
Visual C++
virtual property long long Count {
	long long get ();

Field Value

The number of items stored in the cache.


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.

See Also