Hexalith.KeyValueStorages.Abstractions 2.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Hexalith.KeyValueStorages.Abstractions --version 2.1.1
                    
NuGet\Install-Package Hexalith.KeyValueStorages.Abstractions -Version 2.1.1
                    
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="Hexalith.KeyValueStorages.Abstractions" Version="2.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hexalith.KeyValueStorages.Abstractions" Version="2.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Hexalith.KeyValueStorages.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hexalith.KeyValueStorages.Abstractions --version 2.1.1
                    
#r "nuget: Hexalith.KeyValueStorages.Abstractions, 2.1.1"
                    
#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.
#addin nuget:?package=Hexalith.KeyValueStorages.Abstractions&version=2.1.1
                    
Install Hexalith.KeyValueStorages.Abstractions as a Cake Addin
#tool nuget:?package=Hexalith.KeyValueStorages.Abstractions&version=2.1.1
                    
Install Hexalith.KeyValueStorages.Abstractions as a Cake Tool

Hexalith Key/Value Storages Abstractions

Overview

The Hexalith.KeyValueStorages.Abstractions package provides the core interfaces and abstractions for implementing key/value storage solutions in the Hexalith ecosystem. It defines a common contract that different storage implementations must follow, ensuring consistency and interoperability across various storage providers.

Purpose

This abstraction layer serves several key purposes:

  • Defines a standardized interface for key/value storage operations
  • Enables storage provider independence through abstraction
  • Facilitates easy switching between different storage implementations
  • Provides a foundation for building storage-agnostic applications

Getting Started

Prerequisites

  • .NET 9 SDK or later
  • A compatible storage implementation package

Installation

Add the package to your project:

dotnet add package Hexalith.KeyValueStorages.Abstractions

Basic Usage

// Inject the storage interface
IKeyValueStorage storage = // ... storage implementation

// Store a value
await storage.SetAsync("myKey", "myValue");

// Retrieve a value
string value = await storage.GetAsync<string>("myKey");

// Check if key exists
bool exists = await storage.ExistsAsync("myKey");

// Remove a value
await storage.RemoveAsync("myKey");

Learn More

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Hexalith.KeyValueStorages.Abstractions:

Package Downloads
Hexalith.KeyValueStorages

Hexalith KeyValueStorages utilities and helpers

Hexalith.KeyValueStorages.Files

Hexalith KeyValueStorages utilities and helpers

Hexalith.KeyValueStorages.DaprComponents

Hexalith KeyValueStorages utilities and helpers

Hexalith.EventStores

Hexalith EventStores utilities and helpers

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.2 105 4/12/2025
2.1.1 143 4/11/2025
2.1.0 149 4/11/2025
2.0.2 163 4/10/2025
2.0.1 161 4/10/2025
2.0.0 174 4/10/2025
1.6.0 154 4/9/2025
1.5.0 165 4/8/2025
1.4.2 158 4/8/2025
1.4.1 164 4/7/2025
1.4.0 155 4/7/2025
1.3.2 160 4/6/2025
1.3.1 153 4/6/2025
1.3.0 161 4/6/2025
1.2.0 160 4/6/2025
1.1.0 115 4/4/2025
1.0.0 132 4/4/2025