Varve.Store.ObjectStorage 0.1.0-preview.20

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

Varve.Store.ObjectStorage

A Varve dataset in an object store with conditional writes (ADRs 0134–0136, 0139). Provider-neutral: it is written against IObjectStore, five operations, and a provider is an adapter of its own — Varve.Store.Azure, Varve.Store.S3.

  • A store that enforces conditional writes, or none. A writer's open first probes under probe/{random} that a second create-if-absent and a replace against a stale version are both refused, and fails with ConditionalWritesNotEnforcedException, naming the store, when either is not (ADR 0134). Garage is one such store. The supported stores are those the contract suite's race property has passed: Azure Blob Storage and RustFS.
  • The log as write-once chunk objects. Each flush is one create-if-absent of the next log slot, log/NNNNNNNN.chunks/CCCCCCCC; a sealed segment is consolidated into log/NNNNNNNN.seg, byte for byte the file backend's segment. Declares Durability.Replicated: a commit returns once the store acknowledged its chunk.
  • One writer by an epoch, no lease, no timer. Opening for write claims the next epoch in the writer record and creates the next log slot as a fence, so a writer still running elsewhere appends nothing more: its next create finds the slot taken, it fails that batch with writer-superseded and stays open read-only. Closing releases the epoch. TakeOverAsync is an operator's takeover from a named epoch.
  • Checkpoints as extents in the store (ADR 0139). A checkpoint's extent sets and the catalog that names them are in the store under derived/, where a follower and the next writer find them; the catalog is fenced by the epoch, so a superseded writer cannot swap it. Everything else derived lives in the local cache.
  • A bounded page cache. Extents are read through 1 MiB pages fetched on first use; CacheBytes bounds the cache and eviction never changes a result.
  • Followers. ObjectStorageAccess.ReadOnly claims nothing and writes nothing, so it needs only read access: it attaches the catalog and replays the log after its cursor.
using AzureBlobStore store = AzureBlobStore.Create(new AzureBlobStoreOptions
{
    ContainerUrl = new Uri("https://account.blob.core.windows.net/dataset"),
    Clock = TimeProvider.System,
});

await using ObjectStorage storage = await ObjectStorage.OpenAsync(new ObjectStorageOptions
{
    Store = store,
    Cache = new CacheDirectory("/var/cache/varve/dataset"),
    Instance = new WriterInstance(Environment.MachineName),
    Clock = TimeProvider.System,
    ProbeRandomness = new SystemRandomness(),
});

await using Dataset dataset = await Dataset.OpenAsync(storage, new DatasetOptions { Clock = TimeProvider.System });

// The probe key's random part: the store draws no randomness of its own.
sealed class SystemRandomness : IProbeRandomness
{
    public void Fill(Span<byte> destination) => RandomNumberGenerator.Fill(destination);
}
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
0.1.0-preview.20 48 11/10/2026
0.1.0-preview.19 52 11/6/2026
0.1.0-preview.18 50 11/6/2026
0.1.0-preview.17 49 11/6/2026
0.1.0-preview.16 51 11/3/2026
0.1.0-preview.15 67 10/26/2026
0.1.0-preview.14 55 10/26/2026
0.1.0-preview.13 66 10/26/2026
0.1.0-preview.12 78 10/23/2026
0.1.0-preview.11 60 10/21/2026
0.1.0-preview.10 69 10/20/2026
0.1.0-preview.9 70 10/19/2026
0.1.0-preview.8 87 10/17/2026