NCache 4.6 - Online Documentation

Retrieving Keys Pertaining to a Particular Group

 
To return the list of keys that belong to a specified group and sub-group, the GetGroupKeys method can be used in NCache. This method returns an arrayList of keys.
 
      To utilize the following APIs, include the following namespace in your application: Alachisoft.NCache.Web.Caching.
 
        try
        {
            ArrayList keys = cache.GetGroupKeys("Product", "Beverages");
 
            foreach (object obj in keys)
            {
                //do something
            }
        }
        catch (Exception ex)
        {
            //handle exception
        }
 
See Also