SquidStd.Storage 0.10.0

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

<h1 align="center">SquidStd.Storage</h1>

Local file storage for SquidStd. Provides a filesystem-backed IStorageService (atomic writes, path-safe keys) and a YAML-backed IObjectStorageService that layers typed objects on top of it — registered with a single AddFileStorage() call. Storage is opt-in: it is not registered by RegisterCoreServices.

Install

dotnet add package SquidStd.Storage

Usage

using DryIoc;
using SquidStd.Storage.Abstractions.Data.Config;
using SquidStd.Storage.Abstractions.Interfaces;
using SquidStd.Storage.Extensions;

var container = new Container();
container.AddFileStorage(new StorageConfig { RootDirectory = "data" });

var storage = container.Resolve<IStorageService>();
await storage.SaveAsync("profiles/main.bin", new byte[] { 1, 2, 3 });

Saves are atomic (temp file + move) and keys are constrained to the storage root; ListKeysAsync(prefix?) enumerates stored keys (/-separated), excluding in-flight temp files.

Key types

Type Purpose
StorageRegistrationExtensions AddFileStorage(...) registration (file IStorageService + YAML IObjectStorageService).
FileStorageService Filesystem-backed IStorageService.
YamlObjectStorageService YAML-backed IObjectStorageService over a blob store.

License

MIT — part of SquidStd.

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 (1)

Showing the top 1 NuGet packages that depend on SquidStd.Storage:

Package Downloads
SquidStd.Services.Core

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.10.0 0 6/30/2026
0.9.0 67 6/29/2026
0.8.0 81 6/28/2026
0.7.0 84 6/26/2026
0.6.0 88 6/25/2026
0.5.1 82 6/25/2026
0.5.0 88 6/24/2026
0.4.0 79 6/23/2026
0.3.0 72 6/23/2026