ASP.NET MVC Application Variables?

前端 未结 2 1908
慢半拍i
慢半拍i 2021-01-15 01:28

are there Application variables in ASP.NET? I want to store for all Users an Object which should be independent updated every 5 Minutes. But all users should always see last

2条回答
  •  醉梦人生
    2021-01-15 01:59

    You can use the OutputCacheAttribute for the method in question. It has a duration property.

提交回复
热议问题