ConfigurationManager.AppSettings Caching

前端 未结 6 2240
北恋
北恋 2020-12-29 20:13

We know that IIS caches ConfigurationManager.AppSettings so it reads the disk only once until the web.config is changed. This is done for performance purposes.

Someo

6条回答
  •  臣服心动
    2020-12-29 20:31

    AppSettings is cached. You can improve performance by further caching to limit namevaluecollection lookups.

    See: DotNetPearls Static Config Pattern

提交回复
热议问题