title: Caching framework for ASP.NET MVC / Azure
body: <p>I am building an ASP.NET MVC application, which may be hosted in Azure. Multiple instances of the application may be running in Azure. We may or may not use Azure AppFabric Caching.</p>
  
  <p>How do we structure the caching framework so that:</p>
  
  <ol>
  <li>Caching works in-memory for the development environment.  </li>
  <li>Caching works (in some sort of way) in Azure without AppFabric Caching.</li>
  <li>Caching works in Azure prod environment using AppFabric Caching.</li>
  </ol>
  
  <p>All of the above should be working with some switches in the configuration files.</p>