是对ConcurrentDictionary的封装,使用GetOrAdd,获取对应键值的值,如果不存在对应键值,就用委托中的值初始化,委托只执行一次(真正意义的并发).
Info
Version: | 1.0.0 |
Author(s): | 王俊雄 |
Last Update: | Wednesday, December 26, 2018 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/ShiYi.Collectios.Concurrent |
Install
Install-Package ShiYi.Collectios.Concurrent
dotnet add package ShiYi.Collectios.Concurrent
paket add ShiYi.Collectios.Concurrent
ShiYi.Collectios.Concurrent Download (Unzip the "nupkg" after downloading)