SquidStd.Storage
0.25.0
dotnet add package SquidStd.Storage --version 0.25.0
NuGet\Install-Package SquidStd.Storage -Version 0.25.0
<PackageReference Include="SquidStd.Storage" Version="0.25.0" />
<PackageVersion Include="SquidStd.Storage" Version="0.25.0" />
<PackageReference Include="SquidStd.Storage" />
paket add SquidStd.Storage --version 0.25.0
#r "nuget: SquidStd.Storage, 0.25.0"
#:package SquidStd.Storage@0.25.0
#addin nuget:?package=SquidStd.Storage&version=0.25.0
#tool nuget:?package=SquidStd.Storage&version=0.25.0
<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. |
Related
- Tutorial: Object storage
License
MIT - part of SquidStd.
| 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
- DryIoc.dll (>= 5.4.3)
- SquidStd.Abstractions (>= 0.25.0)
- SquidStd.Core (>= 0.25.0)
- SquidStd.Storage.Abstractions (>= 0.25.0)
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.25.0 | 0 | 7/6/2026 |
| 0.24.1 | 0 | 7/6/2026 |
| 0.24.0 | 7 | 7/6/2026 |
| 0.23.0 | 55 | 7/4/2026 |
| 0.22.0 | 51 | 7/4/2026 |
| 0.21.0 | 64 | 7/3/2026 |
| 0.20.0 | 60 | 7/3/2026 |
| 0.19.0 | 67 | 7/3/2026 |
| 0.18.0 | 62 | 7/3/2026 |
| 0.17.0 | 68 | 7/3/2026 |
| 0.16.0 | 76 | 7/3/2026 |
| 0.15.0 | 85 | 7/2/2026 |
| 0.14.1 | 83 | 7/2/2026 |
| 0.14.0 | 78 | 7/2/2026 |
| 0.13.0 | 76 | 7/2/2026 |
| 0.12.0 | 77 | 7/2/2026 |
| 0.11.0 | 79 | 7/2/2026 |
| 0.10.0 | 112 | 6/30/2026 |
| 0.9.0 | 157 | 6/29/2026 |
| 0.8.0 | 148 | 6/28/2026 |