Nexus.Store 1.3.4

dotnet add package Nexus.Store --version 1.3.4
                    
NuGet\Install-Package Nexus.Store -Version 1.3.4
                    
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="Nexus.Store" Version="1.3.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nexus.Store" Version="1.3.4" />
                    
Directory.Packages.props
<PackageReference Include="Nexus.Store" />
                    
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 Nexus.Store --version 1.3.4
                    
#r "nuget: Nexus.Store, 1.3.4"
                    
#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 Nexus.Store@1.3.4
                    
#: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=Nexus.Store&version=1.3.4
                    
Install as a Cake Addin
#tool nuget:?package=Nexus.Store&version=1.3.4
                    
Install as a Cake Tool

Nexus.Store

Nexus.Store is an ultra-high performance, embedded key-value storage engine built for .NET 10 and C# 14. It combines the raw power of Microsoft Research Garnet with the efficiency of MessagePack binary serialization to provide a world-class caching solution.

Performance Benchmark

Nexus.Store is engineered for extreme throughput. In our latest stress tests on .NET 10, the engine achieved elite performance metrics:

Metric Result
Throughput 240,933+ OPS (Operations Per Second)
Execution Time 2.08 seconds for 500,000 records
Integrity 100% Success rate in concurrent retrieval
Efficiency Optimized for .NET 10 Dynamic PGO and Tiered Compilation

Key Features

  • Modern Stack: Built with C# 14 features like Primary Constructors and optimized collection deconstruction.
  • Embedded & Serverless: No external Redis installation required. The engine runs within your application process.
  • Tiered Storage: Intelligent RAM-to-Disk management allows handling datasets much larger than physical memory.
  • Zero-Friction API: Simple generic methods for complex object storage.
  • Observability: Native support for System.Diagnostics.Metrics, making it ready for OpenTelemetry and Grafana.

Architecture Flow

graph TD
    App[Application Code] -->|C# 14 POCO| Engine{NexusEngine}
    Engine -->|Binary Serialization| MsgPack[MessagePack]
    Engine -->|Telemetry| Mon[NexusMonitor]
    MsgPack -->|Pipelined Protocol| Garnet[Garnet Server]
    Garnet -->|Memory Index| RAM[RAM Tier]
    Garnet -->|AOF / Checkpoint| Disk[Persistent Tiered Storage]

Quick Start

1. Dependency Injection Setup

Configure Nexus.Store in your Program.cs or Startup.cs:

builder.Services.AddNexusStore(options => {
    options.Name = "MainCache";
    options.Address = "127.0.0.1";
    options.Port = 7005;
    options.MemoryLimit = "1g"; // Powers of 2 recommended
    options.StoragePath = Path.Combine(AppContext.BaseDirectory, "store-data");
});

2. Basic Usage

Inject the engine into your services:

public class DataService(INexusEngine store)
{
    public async Task ProcessData(string key, MyData data)
    {
        // High-speed storage
        await store.SetAsync(key, data);
        
        // Rapid retrieval
        var cached = await store.GetAsync<MyData>(key);
    }
}

3. Bulk Operations

For massive data ingestion, use the optimized batch method:

var items = new Dictionary<string, MyData>(); // Load your data
await store.SetBatchAsync(items); 

Technology Stack

📄 License

This project is licensed under the MIT License.

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.3.4 76 2/25/2026
1.3.2 66 2/25/2026
1.3.0 72 2/25/2026
1.1.2 84 1/27/2026
1.1.1 71 1/27/2026