I've added the interface for the media cache provider:

https://github.com/tidyui/Piranha/blob/dev/Piranha/IO/IMediaCacheProvider.cs

I'll start off by implementing the local implementation and then remodel the code currently creating the cache-files. If you have the time you could look into a Storage-implementation for Azure.