Nethermind.RocksDbBindings 11.8.1-preview.145

This is a prerelease version of Nethermind.RocksDbBindings.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Nethermind.RocksDbBindings --version 11.8.1-preview.145
                    
NuGet\Install-Package Nethermind.RocksDbBindings -Version 11.8.1-preview.145
                    
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="Nethermind.RocksDbBindings" Version="11.8.1-preview.145" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nethermind.RocksDbBindings" Version="11.8.1-preview.145" />
                    
Directory.Packages.props
<PackageReference Include="Nethermind.RocksDbBindings" />
                    
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 Nethermind.RocksDbBindings --version 11.8.1-preview.145
                    
#r "nuget: Nethermind.RocksDbBindings, 11.8.1-preview.145"
                    
#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 Nethermind.RocksDbBindings@11.8.1-preview.145
                    
#: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=Nethermind.RocksDbBindings&version=11.8.1-preview.145&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Nethermind.RocksDbBindings&version=11.8.1-preview.145&prerelease
                    
Install as a Cake Tool

RocksDB bindings

Tests Nethermind.RocksDbBindings

C# bindings for RocksDB.

Async reads

GetAsync and MultiGetAsync follow the results and error handling of Get and MultiGet. Keys are copied during submission. Read options must not be mutated until completion; disposing the database, read options or snapshot defers their native release until outstanding reads finish.

byte[]? value = await db.GetAsync(key);
KeyValuePair<byte[], byte[]?>[] values = await db.MultiGetAsync(keys);

GetAsync<T> accepts the existing ISpanDeserializer<T> and deserializes directly from native memory without copying the value into a managed byte array. For struct deserializers, use GetAsync<T, TDeserializer> to avoid boxing:

int value = await db.GetAsync<int, Int32Deserializer>(key, default);

readonly struct Int32Deserializer : ISpanDeserializer<int>
{
    public int Deserialize(ReadOnlySpan<byte> buffer)
        => System.Buffers.Binary.BinaryPrimitives.ReadInt32LittleEndian(buffer);
}

Missing keys return default(T) without invoking the deserializer. Deserialization runs on a thread-pool thread; shared deserializers must support concurrent calls. The span is valid only during Deserialize. Single reads use pooled completions: consume each returned ValueTask once, or call AsTask() once to share the result.

The API is the same on every platform. Linux builds enable RocksDB's native coroutine reads using Folly and io_uring. Windows, macOS and filesystems without a read executor use RocksDB's synchronous fallback, which can block during submission. DbOptions.SetReadIoExecutorThreads configures the shared executor on supported builds. This API does not cancel submitted reads.

License

This project is licensed under the MIT license.

Parts of the managed API were originally derived from rocksdb-sharp, used under BSD-2-Clause, and have since been substantially rewritten.

The package also ships prebuilt RocksDB binaries, used under the Apache-2.0 option of RocksDB's dual Apache-2.0/GPL-2.0 license. Those binaries statically link LZ4, Snappy, Zstandard, and, on Linux, jemalloc, Folly and its dependencies.

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.
  • net10.0

    • No dependencies.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.8.1.39-preview.1 10 8/13/2026
11.8.1-preview.145 3 10/12/2026
11.8.1-preview.123 4 9/7/2026
11.8.1-preview.121 6 9/7/2026
11.8.1-preview.120 5 9/7/2026
11.8.1-preview.112 10 9/4/2026
11.8.1-preview.102 2 9/4/2026
11.8.1-preview.98 5 9/4/2026
11.8.1-preview.96 3 9/4/2026
11.8.1-preview.95 5 9/4/2026
11.8.1-preview.88 356 9/1/2026
11.8.1-preview.86 0 9/1/2026
11.8.1-preview.84 2 8/31/2026
11.8.1-preview.83 5 8/27/2026
11.8.1-preview.82 4 8/27/2026
11.8.1-preview.81 656 8/27/2026
11.8.1-preview.80 4 8/27/2026
11.8.1-preview.79 356 8/26/2026
11.8.1-preview.77 6 8/20/2026
11.8.1-preview.76 6 8/20/2026
Loading failed