Cac*_*hor 13 c# asp.net performance caching
我有很多请求读取我的Web Config文件
variable = WebConfigurationManager.AppSettings["BLAH"]
Run Code Online (Sandbox Code Playgroud)
不要WebConfigurationManager.AppSettings从磁盘每次读取,或者是它在内存中缓存?
如果每次从磁盘读取,我想我需要将变量移动到静态变量,以提高我的应用程序性能.
Dar*_*rov 18
配置设置缓存在内存中,每次调用此函数时都不会解析web.config.