KVPSButter 0.0.1-alpha
See the version list below for details.
dotnet add package KVPSButter --version 0.0.1-alpha
NuGet\Install-Package KVPSButter -Version 0.0.1-alpha
<PackageReference Include="KVPSButter" Version="0.0.1-alpha" />
paket add KVPSButter --version 0.0.1-alpha
#r "nuget: KVPSButter, 0.0.1-alpha"
// Install KVPSButter as a Cake Addin #addin nuget:?package=KVPSButter&version=0.0.1-alpha&prerelease // Install KVPSButter as a Cake Tool #tool nuget:?package=KVPSButter&version=0.0.1-alpha&prerelease
KVPSButter - Abstraction layer for key-value-pair storage
This project adds a simple abstraction for a key-value-pair based storage, similar to how a dictionary works in most programming languages. The interface is designed to work with network based storage but can also work with local storage, such as databases or filesystems.
Why KVPSButter ?
A common requirement for any program is to be able to read and write some kind of persitent storage. Traditionally, this has been done to local disk, but with virtualization, such as Docker this can be cumbersome in terms of backup and synchronization.
One approach to this has been to use FUSE which makes the filesystem-layer the abstraction. While this approach works because it requires little (if any) change to the application it is also suboptimal as it is exposed to the operation system and requires kernel support.
KVPSButter solves this problem by letting the storage destination be specified runtime, such that multiple applications can collaborate without writing applications for a specific storage. This does require that the application uses KVPSButter and is structured around a key-value-pair based storage, but besides this requirement, it is transparent to the application what implementation is actually used.
Examples
To get a connection, use the default loader:
var kvps = KVPSLoader.Default.Create("memory://");
From here it is possible to interact with the store:
await kvps.WriteAsync("key1", new MemoryStream(new byte[] { 1, 2, 3 }));
var data = kvps.ReadAsync("key1");
Destinations
As the key-value-pair abstraction is quite simple, most kinds of storage should support this. At the time of writing, the following are supported:
test://
,memory://
stores data in-memory with no permant storage. Mostly for testing an temporary datafile://
,local://
,path://
stores data on the filesystem. This destination is also fairly simple, but will default to encode the keys with base64 to avoid illegal characterss3
,aws
store data on an S3 compatible destination
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. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.0
- AWSSDK.S3 (>= 3.7.304.10)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on KVPSButter:
Package | Downloads |
---|---|
KVPSButter.S3
An S3 destination for the key-value-pair abstraction library |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.3-beta | 50 | 7/31/2024 |
0.0.2-beta | 377 | 2/12/2024 |
0.0.1-alpha | 62 | 2/12/2024 |
Initial release