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
- Host: GitHub
- URL: https://github.com/losttech/nkeyvalue
- Owner: losttech
- License: apache-2.0
- Created: 2016-12-05T02:01:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T01:17:24.000Z (almost 9 years ago)
- Last Synced: 2025-01-04T01:41:58.462Z (about 1 year ago)
- Language: C#
- Size: 55.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NKeyValue
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);
```