Ranvier.Persistence
0.1.1
dotnet add package Ranvier.Persistence --version 0.1.1
NuGet\Install-Package Ranvier.Persistence -Version 0.1.1
<PackageReference Include="Ranvier.Persistence" Version="0.1.1" />
<PackageVersion Include="Ranvier.Persistence" Version="0.1.1" />
<PackageReference Include="Ranvier.Persistence" />
paket add Ranvier.Persistence --version 0.1.1
#r "nuget: Ranvier.Persistence, 0.1.1"
#:package Ranvier.Persistence@0.1.1
#addin nuget:?package=Ranvier.Persistence&version=0.1.1
#tool nuget:?package=Ranvier.Persistence&version=0.1.1
Ranvier.Persistence
Keyed persisted inputs for Ranvier graphs. A persisted signal or keyed collection is restored from an IStateStore
loaded before the graph is built, and saved back to it after each flush that changes it. Derived nodes are not stored: they
recompute from the restored inputs.
Pre-1.0 API. The package holds three stores: an in-memory store, a file store (.NET, written to a temporary file and
renamed) and a localStorage store (Fable).
open Ranvier
open Ranvier.Persistence
let count = Persist.key "count" (PersistCodec.ofJournal intCodec)
task {
let! session = Persist.loadAsync (FileStateStore "state") [ count ]
use graph = new Graph ()
use _active = graph.Activate ()
let clicks = Persist.signal session count 0 // the stored value, else 0
clicks.Value <- clicks.Value + 1 // saved after this flush
do! session.FlushAsync () // completes once the store has the write
}
- A key is declared with its codec: a
JournalCodec<'T>plus ordered migrations.loadAsyncfails with aPersistLoadExceptionnaming the key on a newer stored version, a missing or failed migration, or a decode failure;PersistOptions.DiscardUndecodableuses the fallback for a decode failure instead. PersistOptions.Busterdiscards every stored record when the stored buster differs.- The changes of one flush save in one
SaveManywhen the graph's journal issession.Journal;FlushAsynccompletes after every earlier save. Persist.rowsandPersist.documentpersist a keyed collection by row or as one record, in insertion order.Persist.restoreandPersist.trackpersist anMvumodel or any tracked read.session.Journalrecords the input-journal position each save includes; a reload exposes it assession.Position.Persist.sourceKeyandPersist.sourcepersist an async source's settled value or failure message.Persist.replayreplays the journal entries aftersession.Positionon a restored graph, in either replay mode.
Persisted inputs belong at the root of a graph or in a keyed factory. The trace dump is not a persistence format. Guide: Persisted inputs.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- FSharp.Core (>= 8.0.100)
- Ranvier (>= 0.2.0)
- Ranvier.Wire (>= 0.2.0)
-
net10.0
- FSharp.Core (>= 8.0.100)
- Ranvier (>= 0.2.0)
- Ranvier.Wire (>= 0.2.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Ranvier.Persistence:
| Package | Downloads |
|---|---|
|
Ranvier.Persistence.KurrentDB
Small scoped snapshots in KurrentDB for Ranvier, with atomic batches and optional optimistic concurrency. |
|
|
Ranvier.Persistence.Marten
Marten PostgreSQL state storage for Ranvier, with scoped records and optional optimistic concurrency. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.1 | 61 | 11/14/2026 |
| 0.1.1-preview.1 | 80 | 10/28/2026 |
| 0.1.0-preview.1 | 75 | 10/26/2026 |
Pre-1.0 release. The API may change before 1.0.