An open API service indexing awesome lists of open source software.

https://github.com/losttech/nkeyvalue

Key Value storage abstraction for .NET
https://github.com/losttech/nkeyvalue

Last synced: about 1 year ago
JSON representation

Key Value storage abstraction for .NET

Awesome Lists containing this project

README

          

# NKeyValue Build Status
Key Value storage abstraction for .NET

Supports .NET Core

Supported backends: Azure Tables

# Install
```powershell
Install-Package LostTech.Storage.KeyValue -Pre
Install-Package LostTech.Storage.Azure -Pre # to enable Azure backend
```

# Example
```csharp
using LostTech.NKeyValue;

var keyValueStore = await AzureTable.OpenOrCreate("UseDevelopmentStorage=true", "Sample");
await keyValueStore.Put("42", new Dictionary { ["Key"] = "value0" });
var answer = await keyValueStore.TryGetVersioned("42");
Console.WriteLine("answer version: {0}", answer.Version);
```