I'm trying to get list of cached objects in my application. In this page MSDN - Cache Class it says that I can use getEnumerator() function of the cache class to get list of cached objects. but when I use it, it only returns a Dictionary of cached objects like bundles etc, and there is no item from my output caches.
Asked
Active
Viewed 25 times
0
-
How did you use it? Post your code. – ataravati Oct 11 '15 at 16:31
-
IDictionaryEnumerator CacheEnum = Cache.GetEnumerator(); while (CacheEnum.MoveNext()) { cacheItem = Server.HtmlEncode(CacheEnum.Current.ToString()); Response.Write(cacheItem); } – mesut Oct 11 '15 at 16:42
-
Post your code in the question, not in a comment. – ataravati Oct 11 '15 at 16:59
-
By the way, `GetEnumertor()` doesn't return a Dictionary, it returns an `IEnumerator`. You are assigning it to an `IDictionaryEnumerator` in your code. – ataravati Oct 11 '15 at 17:04