When does a dictionary throw an IndexOutOfRangeException on Add or ContainsKey?

后端 未结 3 1314
盖世英雄少女心
盖世英雄少女心 2020-12-31 01:19

On a busy ASP .NET website, I have a Dictionary, which acts as a cache, basically storing key/value pairs for later retrieval.

On high load, the Dictionary some time

3条回答
  •  天命终不由人
    2020-12-31 02:08

    Here's a thread-safe dictionary http://devplanet.com/blogs/brianr/archive/2008/09/26/thread-safe-dictionary-in-net.aspx also check out this SO question.

提交回复
热议问题