Invalidatation of outputcache and DistributedOutputcacheProvider

Jul 22, 2013 at 6:26 PM
Hi guys

Thanks for the awesome library. Just had a problem when trying to invalidate when using AppFabric as my custom outputcache provider and I was curious if there was a better way to approach this.

When I try to invalidate all cache
var cacheManager = new OutputCachManager();

I get an error message that says my provider is not implementing
IEnumerable<KeyValuePair<string,object>> .

I initially thought I could extend DistributedOutoutCacheProvider and implement IEnumerable<KeyValuePair<string,object>> but the class is sealed.

Any ideas how to approach this?
Should I create an adapter that wraps DistributedOutputCacheProvider and implement IEnumerable<T> and use that ? Or is this a bad idea and the class is sealed for a reason.