Keryhe.Almandine.Client 1.0.0-preview.1

This is a prerelease version of Keryhe.Almandine.Client.
dotnet add package Keryhe.Almandine.Client --version 1.0.0-preview.1
                    
NuGet\Install-Package Keryhe.Almandine.Client -Version 1.0.0-preview.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="Keryhe.Almandine.Client" Version="1.0.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Keryhe.Almandine.Client" Version="1.0.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Keryhe.Almandine.Client" />
                    
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 Keryhe.Almandine.Client --version 1.0.0-preview.1
                    
#r "nuget: Keryhe.Almandine.Client, 1.0.0-preview.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.
#:package Keryhe.Almandine.Client@1.0.0-preview.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Keryhe.Almandine.Client&version=1.0.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Keryhe.Almandine.Client&version=1.0.0-preview.1&prerelease
                    
Install as a Cake Tool

Keryhe.Almandine.Client

Lightweight consumer client for the Almandine cache tier. Talks to Almandine's Garnet server over StackExchange.Redis — no dependency on Almandine's server-side stack (Garnet, RabbitMQ, Polly), so it's safe to reference from any thin consumer service.

Install

dotnet add package Keryhe.Almandine.Client

Setup

builder.Services.AddCacheClient(connectionString: "127.0.0.1:6379");

Registers a shared IConnectionMultiplexer/IDatabase and a scoped CacheClient.

Usage

public class OrdersService(CacheClient cache)
{
    public Task<Order?> GetAsync(string id) => cache.GetAsync<Order>($"order:{id}");
    public Task SetAsync(Order order) => cache.SetAsync($"order:{order.Id}", order);
    public Task DeleteAsync(string id) => cache.DeleteAsync($"order:{id}");
}

Batch operations round-trip once for many keys:

await cache.GetManyAsync<Order>(ids);
await cache.SetManyAsync(orders.ToDictionary(o => $"order:{o.Id}", o => o));
await cache.DeleteManyAsync(ids);

GetAllAsync<T>(prefix) scans the cache for all keys under a prefix (e.g. "order") — it only returns what's currently cached, so it assumes the cache is warm.

Every call automatically propagates the current Activity's W3C trace context (traceparent) to the server if one is present, and emits its own spans on the almandine.client ActivitySource.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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
1.0.0-preview.1 87 8/30/2026