Open.AsyncToolkit.KeyValue
1.0.4
dotnet add package Open.AsyncToolkit.KeyValue --version 1.0.4
NuGet\Install-Package Open.AsyncToolkit.KeyValue -Version 1.0.4
<PackageReference Include="Open.AsyncToolkit.KeyValue" Version="1.0.4" />
<PackageVersion Include="Open.AsyncToolkit.KeyValue" Version="1.0.4" />
<PackageReference Include="Open.AsyncToolkit.KeyValue" />
paket add Open.AsyncToolkit.KeyValue --version 1.0.4
#r "nuget: Open.AsyncToolkit.KeyValue, 1.0.4"
#addin nuget:?package=Open.AsyncToolkit.KeyValue&version=1.0.4
#tool nuget:?package=Open.AsyncToolkit.KeyValue&version=1.0.4
Open.AsyncToolkit
Overview
Open.AsyncToolkit offers a set of focused interfaces and implementations for common asynchronous programming patterns. The libraries follow interface segregation principles to enable precise dependency injection and composability.
Packages
Package | Description | NuGet |
---|---|---|
Open.AsyncToolkit.KeyValue | Core library providing foundational building blocks for asynchronous key-value operations | |
Open.AsyncToolkit.BlobStorage | Composable interfaces for blob storage operations | |
Open.AsyncToolkit.HashedRepository | Content-addressable storage built on top of the foundational interfaces |
Key Principles
🧱 Building Block Architecture
All packages in Open.AsyncToolkit are built using a foundation of small, focused interfaces that can be composed to create more complex functionality:
- Interface Segregation: Granular interfaces allow for precise dependency injection
- Composability: Mix and match components to build custom solutions
- Testability: Easily mock dependencies in unit tests
Example
// Only depend on the operations you actually need
public class UserProfileService
{
private readonly IReadAsync<string, UserProfile> _profileReader;
private readonly IUpdateAsync<string, UserProfile> _profileUpdater;
public UserProfileService(
IReadAsync<string, UserProfile> profileReader,
IUpdateAsync<string, UserProfile> profileUpdater)
{
_profileReader = profileReader;
_profileUpdater = profileUpdater;
}
public async Task<UserProfile> GetUserProfileAsync(string userId)
=> await _profileReader.ReadAsync(userId);
public async Task UpdateUserEmailAsync(string userId, string newEmail)
{
var profile = await _profileReader.ReadAsync(userId);
profile.Email = newEmail;
await _profileUpdater.UpdateAsync(userId, profile);
}
}
Features
- Async-first design: Built around ValueTask-based async patterns for high performance
- Cross-platform: Works on all .NET platforms supporting .NET Standard 2.0, 2.1, and .NET 9
- Modern C# features: Utilizes the latest C# language features
- Well-tested: Comprehensive test coverage ensures reliability
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.4)
- Open.Disposable.ObjectPools (>= 3.0.2)
- Open.Threading.ReadWrite (>= 3.0.1)
- System.Collections.Immutable (>= 9.0.4)
-
.NETStandard 2.1
- Open.Disposable.ObjectPools (>= 3.0.2)
- Open.Threading.ReadWrite (>= 3.0.1)
- System.Collections.Immutable (>= 9.0.4)
-
net9.0
- Open.Disposable.ObjectPools (>= 3.0.2)
- Open.Threading.ReadWrite (>= 3.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Open.AsyncToolkit.KeyValue:
Package | Downloads |
---|---|
Open.AsyncToolkit.BlobStorage
Core interfaces and types for blob storage operations with async support |
GitHub repositories
This package is not used by any popular GitHub repositories.