azurehttpruntime.cache

Does Azure have support for HttpRuntime.Cache for an ASP.Net application?


My ASP.Net application uses HTTPRuntime.Cache. If I host it on Azure:

  1. Will there be any compilation errors assuming HTTPRuntime.Cache is not supported on Azure
  2. There will not be any compliation errors, but HttpRunTime.Cache always returns null for any requested key
  3. HttpRuntime.Case just works fine

Which of my assumptions is correct?


Solution

  • You can use HttpRuntime.Cache in Azure web role without any problem as we too are using it. Thing to keep in mind is that this Cache is machine specific, in case you have multiple instance running, each would have its own cache data.