Clustron.Extensions.Caching.Distributed
0.1.1
dotnet add package Clustron.Extensions.Caching.Distributed --version 0.1.1
NuGet\Install-Package Clustron.Extensions.Caching.Distributed -Version 0.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="Clustron.Extensions.Caching.Distributed" Version="0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Clustron.Extensions.Caching.Distributed" Version="0.1.1" />
<PackageReference Include="Clustron.Extensions.Caching.Distributed" />
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 Clustron.Extensions.Caching.Distributed --version 0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Clustron.Extensions.Caching.Distributed, 0.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.
#:package Clustron.Extensions.Caching.Distributed@0.1.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=Clustron.Extensions.Caching.Distributed&version=0.1.1
#tool nuget:?package=Clustron.Extensions.Caching.Distributed&version=0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Clustron Distributed Cache
Clustron Distributed Cache provides an implementation of IDistributedCache backed by Clustron DKV.
It allows ASP.NET Core applications to use Clustron as a distributed cache with minimal changes.
๐ Features
- Drop-in replacement for
IDistributedCache - Built on Clustron DKV
- Supports TTL (expiration)
- Key prefixing support
- Works with ASP.NET Core DI
- High-performance distributed caching
๐ฆ Installation
dotnet add package Clustron.Extensions.Caching.Distributed
๐ง Prerequisites
You need a configured Clustron DKV client.
โ๏ธ Usage
1. Initialize DKV Client
using Clustron.DKV.Client;
var client = await DKVClient.InitializeInProc("demo");
// or remote
// var client = await DKVClient.InitializeRemote("store", endpoints);
2. Register Services
using Clustron.Extensions.Caching.Distributed;
using Clustron.DKV.Abstractions;
builder.Services.AddSingleton<IDkvClient>(client);
builder.Services.AddClustronDistributedCache(options =>
{
options.KeyPrefix = "app:";
});
3. Use IDistributedCache
app.MapGet("/set/{key}/{value}", async (string key, string value, IDistributedCache cache) =>
{
await cache.SetAsync(key, System.Text.Encoding.UTF8.GetBytes(value));
return "Stored";
});
app.MapGet("/get/{key}", async (string key, IDistributedCache cache) =>
{
var data = await cache.GetAsync(key);
return data == null ? "Miss" : System.Text.Encoding.UTF8.GetString(data);
});
๐งช Local Testing
You can run Clustron in in-proc mode:
var client = await DKVClient.InitializeInProc("test-cache");
๐ Notes
- This package depends on:
Clustron.DKV.AbstractionsClustron.DKV.Client
- Ensure compatible versions are installed.
๐ License
This project is licensed under Business Source License 1.1 (BUSL-1.1).
Production use requires a commercial license.
Contact: support@clustron.io
๐ Repository
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. 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. net10.0 was computed. 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.
-
net8.0
- Clustron.DKV.Abstractions (>= 0.1.1)
- Clustron.DKV.Client (>= 0.1.1)
- Microsoft.Extensions.Caching.Abstractions (>= 8.0.0)
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.1.1 | 123 | 3/18/2026 |