Is the ConcurrentDictionary thread-safe to the point that I can use it for a static cache?

Viewed 14317

Basically, if I want to do the following:

public class SomeClass
{
    private static ConcurrentDictionary<..., ...> Cache { get; set; }
}

Does this let me avoid using locks all over the place?

2 Answers
Related