CacheTKey, TValueGetStatistics Method

Gets an ICacheStatistics instance that provides statistical information about this CacheTKey, TValue.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.2.0
C#
public ICacheStatistics GetStatistics()

Return Value

ICacheStatistics
An ICacheStatistics instance that provides statistical information about the CacheTKey, TValue.

Implements

ICacheGetStatistics

Remarks

The returned ICacheStatistics instance is a wrapper around the CacheTKey, TValue and reflects any changes happened to the cache immediately. Therefore it is not necessary to call this method again whenever new statistics are required.

This method is an O(1) operation.

See Also