问题
Can I access the ASP.NET Cache object from Application_Start? I was previously using it in a page render. I though it might be available as an object under the 'Server' object but no luck.
回答1:
Use HttpRuntime.Cache.
来源:https://stackoverflow.com/questions/1722360/where-can-i-access-there-asp-net-application-cache-from-global-application-start