MikValSor.ImmutableStore 1.0.0

Install-Package MikValSor.ImmutableStore -Version 1.0.0
dotnet add package MikValSor.ImmutableStore --version 1.0.0
<PackageReference Include="MikValSor.ImmutableStore" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MikValSor.ImmutableStore --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MikValSor.ImmutableStore, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MikValSor.ImmutableStore as a Cake Addin
#addin nuget:?package=MikValSor.ImmutableStore&version=1.0.0

// Install MikValSor.ImmutableStore as a Cake Tool
#tool nuget:?package=MikValSor.ImmutableStore&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Library for storage of immutable .Net types.

Nuget package: https://www.nuget.org/packages/MikValSor.ImmutableStore

Example:

var fileStore = new MikValSor.Immutable.FileStorage(".");
var store = new MikValSor.Immutable.Store(fileStore);

MikValSor.Immutable.Persisted<string> presisted = await store.EnsurePresistAsync("StringsAreImmutable");

System.Console.WriteLine($"presisted.Checksum.ToBase64(): {presisted.Checksum.ToBase64()}");

/**
    Output:
    presisted.Checksum.ToBase64(): YZrsXP5n1OVHAFK8YfUZVXpzXFmt7H9sCeaPhMOfdP32LnUvP+HmNFvHVs1CsYR6IzSz3gwi+l285jvV2aWQng==
**/

var checksum = MikValSor.Immutable.Checksum.Get("YZrsXP5n1OVHAFK8YfUZVXpzXFmt7H9sCeaPhMOfdP32LnUvP+HmNFvHVs1CsYR6IzSz3gwi+l285jvV2aWQng==");
MikValSor.Immutable.StoreResult<string> storeResult = await store.TryGetAsync<string>(checksum);

System.Console.WriteLine($"storeResult.GetValue(): {storeResult.GetValue()}");

/**
    Output:
    storeResult.GetValue(): StringsAreImmutable
**/

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.0.0 3,496 4/12/2019

v1.0.0
   - Initial release.