Move RemoveByTag to IOutputCacheStorageProvider

May 8, 2013 at 4:05 PM
I'm currently working on a more native module for this using the DataCache libraries and have come across an annoyance in that the RemoveByTag method is not part of IOutputCacheStorageProvider (but instead in ICacheService) which means to override it I basically need to unnecessarily duplicate and SuppressDependency on CacheService just to alter the behaviour of this one method.

Seems that the implementation of the tags should be more specific to the individual storage providers, which in the case of DataCache is pretty much completely handled by it.

It would also be handy if the generation of the cache keys where separated out so these can be more easily overridden and not hard coded into OutputCacheFilter.