Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 945
coder_bro Avatar asked Jan 01 '26 08:01

coder_bro


1 Answers

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.

like image 127
Chandermani Avatar answered Jan 04 '26 04:01

Chandermani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!