Is it possible to iterate all the OutputCache keys?
Posted
by Deane
on Stack Overflow
See other posts from Stack Overflow
or by Deane
Published on 2010-06-14T15:01:08Z
Indexed on
2010/06/14
15:02 UTC
Read the original article
Hit count: 258
Is it possible to iterate the OutputCache keys? I know you can remove them individually via HttpResponse.RemoveOutputCacheItem(), but is there a way I can iterate all the keys to see what's in the collection?
I searched through Object Viewer, but didn't see anything.
Worst case, I can maintain my own index. Since I'm doing everything by VaryByCustom, they get "fed" through a method in global.asax. It just strikes me that there has to be a more elegant way of doing this.
© Stack Overflow or respective owner