Nethermind.RocksDbBindings
11.8.1.153
dotnet add package Nethermind.RocksDbBindings --version 11.8.1.153
NuGet\Install-Package Nethermind.RocksDbBindings -Version 11.8.1.153
<PackageReference Include="Nethermind.RocksDbBindings" Version="11.8.1.153" />
<PackageVersion Include="Nethermind.RocksDbBindings" Version="11.8.1.153" />
<PackageReference Include="Nethermind.RocksDbBindings" />
paket add Nethermind.RocksDbBindings --version 11.8.1.153
#r "nuget: Nethermind.RocksDbBindings, 11.8.1.153"
#:package Nethermind.RocksDbBindings@11.8.1.153
#addin nuget:?package=Nethermind.RocksDbBindings&version=11.8.1.153
#tool nuget:?package=Nethermind.RocksDbBindings&version=11.8.1.153
RocksDB bindings
C# bindings for RocksDB.
CPU requirements
Linux and Windows x64 binaries require x86-64-v2 (SSE4.2 and POPCNT), the .NET 11 baseline. macOS x64 binaries require AVX2, available on all Intel Macs supported by macOS 15.
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 | Versions 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. |
-
net10.0
- No dependencies.
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 |
|---|---|---|
| 11.8.1.153 | 18,783 | 10/13/2026 |
| 11.8.1-preview.140 | 888,526 | 9/29/2026 |
| 11.8.1-preview.92 | 1,498,842 | 9/3/2026 |
| 11.8.1-preview.90 | 442 | 9/3/2026 |