Listing all objects from a CacheManager

Topics: Caching Application Block
Aug 14, 2007 at 12:41 AM
Hi there,

I've just started using the caching application block, so this might be a silly question.

I just want to be able to loop through the items in the CacheManager.

E.g i have a cache manager (CacheManager cm1 = CacheFactory.GetCacheManager("cm1")).

I want to loop through this manager, or somehow find all the keys available, so that i can find what is still in cache.

Aug 14, 2007 at 11:56 AM

There is currently no way to iterate over a Cache's objects. You can only add, remove and check if an item belongs to the cache.

Nov 13, 2007 at 11:10 PM
What is the proper way to request this feature be added the functionality? It would be VERY useful for debugging purposes and I and my colleagues have often wished for it.

Nov 14, 2007 at 10:16 AM
Hi James,

You can add the request to the issue tracker in this site (

Keep in mind that entries might have expired between the time you started iterating.