←Select platform

GetStatistics(string,string) Method

Summary

Returns a snapshot of the number of items in the specified region.

Syntax
C#
VB
C++
Java
public override CacheStatistics GetStatistics( 
   string key, 
   string regionName 
) 
Public Overrides Function GetStatistics( 
   ByVal key As String, 
   ByVal regionName As String 
) As CacheStatistics 
public:  
   virtual CacheStatistics^ GetStatistics( 
      String^ key, 
      String^ regionName 
   ) override 
@Override 
public CacheStatistics getStatistics(String key, String regionName) 

Parameters

key

Key name. If this parameter is not null, then this method will return information on this item only. This can be used to check

if the item has expired but not yet purged from the cache. If this parameter is null, then information on all the items in regionName is returned.

regionName

Region name. If this value is not null, then this method will return information on the items in this region. If this

parameter is null, then information on all regions in the cache is returned (the equivalent of calling GetStatistics.

Return Value

A CacheStatistics object containing the current number of regions, items and expired items in the cache.

Requirements
Target Platforms
Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.