3 ms·
FYI, if you plan to do this in ASP netcore, combine with AsyncLazy for the most optimal results https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/
by jtwigg 4y ago
FYI, if you plan to do this in ASP netcore, combine with AsyncLazy for the most optimal results
https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AsyncGuidance.md#concurrentdictionarygetoradd https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
- alexchro93 4y agoNeat page from David Fowler. I didn't know about that one. Thank you. To further explain why you want to use an AsyncLazy (or Lazy for synchronous programming) when working with ConcurrentDictionary I find this article to be helpful: https://andrewlock.net/making-getoradd-on-concurrentdictionary-thread-safe-using-lazy/ https://andrewlock.net/making-getoradd-on-concurrentdictiona...
- deleted 4y ago[deleted]