Soenneker.Dictionaries.AsyncLazy 3.0.93

Prefix Reserved
dotnet add package Soenneker.Dictionaries.AsyncLazy --version 3.0.93
                    
NuGet\Install-Package Soenneker.Dictionaries.AsyncLazy -Version 3.0.93
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Dictionaries.AsyncLazy" Version="3.0.93" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Dictionaries.AsyncLazy" Version="3.0.93" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Dictionaries.AsyncLazy" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Dictionaries.AsyncLazy --version 3.0.93
                    
#r "nuget: Soenneker.Dictionaries.AsyncLazy, 3.0.93"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Soenneker.Dictionaries.AsyncLazy&version=3.0.93
                    
Install Soenneker.Dictionaries.AsyncLazy as a Cake Addin
#tool nuget:?package=Soenneker.Dictionaries.AsyncLazy&version=3.0.93
                    
Install Soenneker.Dictionaries.AsyncLazy as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Dictionaries.AsyncLazy

A thread-safe dictionary that lazily initializes values asynchronously with automatic disposal

A high-performance asynchronous lazy-loading dictionary in C#, designed to ensure only one factory execution per key while supporting concurrent access.

Installation

dotnet add package Soenneker.Dictionaries.AsyncLazy

Usage

Basic Example

var dictionary = new AsyncLazyDictionary<string, string>();

string result = await dictionary.Get("greeting", async () => {
    await Task.Delay(1000, token); // Simulate data fetching
    return "Hello, World!";
});

Console.WriteLine(result); // "Hello, World!"

Removing an Entry

await dictionary.Remove("greeting");

Proper Disposal

await dictionary.DisposeAsync();
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.93 145 20 days ago
3.0.92 140 21 days ago
3.0.91 141 21 days ago
3.0.90 133 21 days ago
3.0.89 136 21 days ago
3.0.88 149 21 days ago
3.0.87 140 21 days ago
3.0.86 134 21 days ago
3.0.85 135 22 days ago
3.0.84 139 22 days ago
3.0.83 145 22 days ago
3.0.82 140 22 days ago
3.0.81 142 22 days ago
3.0.80 136 22 days ago
3.0.79 143 22 days ago
3.0.78 141 22 days ago
3.0.77 150 23 days ago
3.0.76 116 23 days ago
3.0.75 112 23 days ago
3.0.74 93 23 days ago
3.0.73 90 23 days ago
3.0.72 87 23 days ago
3.0.71 94 23 days ago
3.0.70 92 23 days ago
3.0.69 72 24 days ago
3.0.68 70 24 days ago
3.0.67 70 24 days ago
3.0.66 69 24 days ago
3.0.65 72 24 days ago
3.0.64 78 24 days ago
3.0.63 70 24 days ago
3.0.62 75 24 days ago
3.0.61 80 25 days ago
3.0.60 135 25 days ago
3.0.59 130 a month ago
3.0.58 130 a month ago
3.0.57 133 a month ago
3.0.56 137 a month ago
3.0.55 137 a month ago
3.0.54 71 a month ago
3.0.53 74 a month ago
3.0.52 455 a month ago
3.0.51 456 a month ago
3.0.50 99 a month ago
3.0.49 116 a month ago
3.0.48 129 a month ago
3.0.47 130 a month ago
3.0.46 54 a month ago
3.0.45 53 a month ago
3.0.44 67 a month ago
3.0.43 142 2 months ago
3.0.42 145 2 months ago
3.0.41 143 2 months ago
3.0.40 143 2 months ago
3.0.39 161 2 months ago
3.0.38 159 2 months ago
3.0.37 160 2 months ago
3.0.36 148 2 months ago
3.0.35 148 2 months ago
3.0.34 202 2 months ago
3.0.33 195 2 months ago
3.0.32 81 2 months ago
3.0.31 85 2 months ago
3.0.30 88 2 months ago
3.0.29 90 2 months ago
3.0.28 92 2 months ago
3.0.27 83 2 months ago
3.0.26 90 2 months ago
3.0.25 87 2 months ago
3.0.24 88 2 months ago
3.0.23 82 2 months ago
3.0.22 81 2 months ago
3.0.21 80 2 months ago
3.0.20 82 2 months ago
3.0.19 82 2 months ago
3.0.18 96 2 months ago
3.0.17 79 2 months ago
3.0.16 86 2 months ago
3.0.15 88 2 months ago
3.0.14 97 2 months ago
3.0.13 87 2 months ago
3.0.12 90 2 months ago
3.0.11 83 2 months ago
3.0.10 93 2 months ago
3.0.9 89 2 months ago
3.0.8 93 2 months ago
3.0.7 100 2 months ago
3.0.6 97 2 months ago
3.0.5 95 2 months ago
3.0.4 94 2 months ago
3.0.3 93 2 months ago
3.0.2 101 2 months ago
3.0.1 101 2 months ago