Gets the number of items stored in the cache.

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

Syntax

C#
public override long Count { get; }
Visual Basic
Public Overrides ReadOnly Property Count As Long
	Get
Visual C++
public:
virtual property long long Count {
	long long get () override;
}

Property Value

Type: 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 incase of failure.

See Also