Calebs.KeyValueRepoTests 0.5.0-ci-44

This is a prerelease version of Calebs.KeyValueRepoTests.
dotnet add package Calebs.KeyValueRepoTests --version 0.5.0-ci-44                
NuGet\Install-Package Calebs.KeyValueRepoTests -Version 0.5.0-ci-44                
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="Calebs.KeyValueRepoTests" Version="0.5.0-ci-44" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Calebs.KeyValueRepoTests --version 0.5.0-ci-44                
#r "nuget: Calebs.KeyValueRepoTests, 0.5.0-ci-44"                
#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.
// Install Calebs.KeyValueRepoTests as a Cake Addin
#addin nuget:?package=Calebs.KeyValueRepoTests&version=0.5.0-ci-44&prerelease

// Install Calebs.KeyValueRepoTests as a Cake Tool
#tool nuget:?package=Calebs.KeyValueRepoTests&version=0.5.0-ci-44&prerelease                

KeyValueRepo

KeyValueRepo Logo

.github/workflows/dev-ci.yml .github/workflows/main-publish.yml NuGet NuGet .github/workflows/working-branches.yml

A generic interface for Key Value storage operations. Ideal for simple key-values that might migrate across in memory, SQL Server or NoSQL - a quick and easy way to create a KeyValue store.

By default, this library ships with an in-memory implementation. KeyValueInMemory which implements the IKeyValueRepo interface.

Installing KeyValueRepo

You should install the KeyValueRepo with NuGet:

Install-Package Calebs.KeyValueRepo

Or via the .NET Core command line interface:

dotnet add package Calebs.KeyValueRepo

Either command, from Package Manager Console or .NET Core CLI, will download and install Calebs.KeyValueRepo and all required dependencies.

Contributing

  • PRs should be against the Develop branch.
  • Merged PRs to Develop will trigger a [version]-ci-[buildnumber] deployment to nuget, assuming all unit tests pass.
  • Merged PRs to Main will trigger a [version] deployment to nuget, assuming all of the tests pass.

Versioning

The package version is defined in the KeyValueRepo.csproj file, using .NET SDK style structure. We follow semantic versioning for this package.

Methods in IKeyValueRepo

  • Get<T>(string Id)
  • GetAll<T>()
  • Update<T>(string Id, T object)
  • GetMeta<T>(string Id)
  • GetMetaAll<T>()
  • GetHistory<T>(string Id)
  • Remove<T>(string Id)
  • RemoveAll<T>()

Methods in included extension methods

  • Get<T>(int Id) ⇒ Get<T>(string Id)
  • Update<T>(int Id, T object) ⇒ Update(string Id, T object)
  • Remove<T>(int Id) ⇒ Remove<T>(string Id)

Release History & Development Goals

  • 0.1.0 - initial release (in Memory)
  • 0.2.0 - added SqlLite Implementation
  • ✔ SQLite Nuget Package
  • ✔ Base (InMemory) Unit Test Nuget Package
  • 0.3.0 - Added Meta Objects
  • 0.4.0 - Completed SQLite Package with Meta Objects
  • 0.5.0 - Added: Remove<T>(id) and RemoveAll<T> to IKeyValueRepo

Future Goals


  • New Repo: Azure Tables Implementation
  • New Repo: Sql Server Implementation
  • New Repo: Azure CosmoDB Implementation
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
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
0.5.0-ci-44 127 1/8/2024
0.5.0-ci-43 62 1/8/2024
0.4.0-ci-42 76 1/8/2024
0.4.0-ci-41 73 1/7/2024
0.4.0-ci-40 86 1/4/2024
0.4.0-ci-37 93 1/4/2024
0.4.0-ci-36 70 1/4/2024