I'm working with a project where users that login might open up another tab (IE 7, FF, etc.) and login again as another user. My original cache issue was not having cached keys overwritten during this double login scenario. For this I'm going to concatenate the userID when creating a new cache item. This creates another issue. How can I only remove that items with one specific user? There doesn't appear to be any way to enumerate through a list. The CacheItem exists, but there's no Cache.Items (or similar) to enumerate through using a ForEach. Also, after instantiating the ICacheManager interface I tried to just look for an index. See below:
private ICacheManager appCache
(in some public method....)
typing appCache[ <---- intellisense just pops up that it's looking for a string key.
I also tried to inherit from the IEnumerate<>, but I'm not sure exactly how this'll work. Is there a way to extend the EntLib cache to enumerate through?