Backend-agnostic storage contracts for SquidStd: a binary blob store (IStorageService), a typed object
store (IObjectStorageService), key enumeration (ListKeysAsync), and StorageConfig. Pick a backend
implementation (local file or S3/MinIO) from a companion package.
dotnet add package SquidStd.Storage.Abstractionsusing SquidStd.Storage.Abstractions.Interfaces;
// Resolve IStorageService from a backend package (file or S3).
public async Task DumpKeysAsync(IStorageService storage)
{
await foreach (var key in storage.ListKeysAsync("profiles/"))
{
Console.WriteLine(key);
}
}| Type | Purpose |
|---|---|
IStorageService |
Binary blob store: SaveAsync / LoadAsync / DeleteAsync / ExistsAsync / ListKeysAsync. |
IObjectStorageService |
Typed object store over a blob backend (serialized by the provider). |
StorageConfig |
Root directory for file storage. |
- Tutorial: Object storage
MIT - part of SquidStd.