Rystem.Content.Infrastructure.InMemory
10.0.4
dotnet add package Rystem.Content.Infrastructure.InMemory --version 10.0.4
NuGet\Install-Package Rystem.Content.Infrastructure.InMemory -Version 10.0.4
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="Rystem.Content.Infrastructure.InMemory" Version="10.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rystem.Content.Infrastructure.InMemory" Version="10.0.4" />
<PackageReference Include="Rystem.Content.Infrastructure.InMemory" />
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 Rystem.Content.Infrastructure.InMemory --version 10.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Rystem.Content.Infrastructure.InMemory, 10.0.4"
#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 Rystem.Content.Infrastructure.InMemory@10.0.4
#: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=Rystem.Content.Infrastructure.InMemory&version=10.0.4
#tool nuget:?package=Rystem.Content.Infrastructure.InMemory&version=10.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
What is Rystem?
Integration with In Memory and Content Repository
services
.AddContentRepository()
.WithInMemoryIntegration("inmemory");
How to use in a business class
public class AllStorageTest
{
private readonly IContentRepositoryFactory _contentRepositoryFactory;
private readonly Utility _utility;
public AllStorageTest(IContentRepositoryFactory contentRepositoryFactory, Utility utility)
{
_contentRepositoryFactory = contentRepositoryFactory;
_utility = utility;
}
public async Task ExecuteAsync()
{
var _contentRepository = _contentRepositoryFactory.Create("inmemory");
var file = await _utility.GetFileAsync();
var name = "file.png";
var contentType = "images/png";
var metadata = new Dictionary<string, string>()
{
{ "name", "ale" }
};
var tags = new Dictionary<string, string>()
{
{ "version", "1" }
};
var response = await _contentRepository.ExistAsync(name).NoContext();
if (response)
{
await _contentRepository.DeleteAsync(name).NoContext();
response = await _contentRepository.ExistAsync(name).NoContext();
}
Assert.False(response);
response = await _contentRepository.UploadAsync(name, file.ToArray(), new ContentRepositoryOptions
{
HttpHeaders = new ContentRepositoryHttpHeaders
{
ContentType = contentType
},
Metadata = metadata,
Tags = tags
}, true).NoContext();
Assert.True(response);
response = await _contentRepository.ExistAsync(name).NoContext();
Assert.True(response);
var options = await _contentRepository.GetPropertiesAsync(name, ContentInformationType.All).NoContext();
Assert.NotNull(options.Uri);
foreach (var x in metadata)
{
Assert.Equal(x.Value, options.Options.Metadata[x.Key]);
}
foreach (var x in tags)
{
Assert.Equal(x.Value, options.Options.Tags[x.Key]);
}
Assert.Equal(contentType, options.Options.HttpHeaders.ContentType);
metadata.Add("ale2", "single");
response = await _contentRepository.SetPropertiesAsync(name, new ContentRepositoryOptions
{
HttpHeaders = new ContentRepositoryHttpHeaders
{
ContentType = contentType
},
Metadata = metadata,
Tags = tags
}).NoContext();
Assert.True(response);
options = await _contentRepository.GetPropertiesAsync(name, ContentInformationType.All).NoContext();
Assert.Equal("single", options.Options.Metadata["ale2"]);
response = await _contentRepository.DeleteAsync(name).NoContext();
Assert.True(response);
response = await _contentRepository.ExistAsync(name).NoContext();
Assert.False(response);
}
}
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Rystem.Content.Abstractions (>= 10.0.4)
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 |
|---|---|---|
| 10.0.4 | 85 | 2/9/2026 |
| 10.0.3 | 84,653 | 1/28/2026 |
| 10.0.1 | 209,060 | 11/12/2025 |
| 9.1.3 | 277 | 9/2/2025 |
| 9.1.2 | 764,464 | 5/29/2025 |
| 9.1.1 | 97,768 | 5/2/2025 |
| 9.0.32 | 186,682 | 4/15/2025 |
| 9.0.31 | 5,759 | 4/2/2025 |
| 9.0.30 | 88,821 | 3/26/2025 |
| 9.0.29 | 9,000 | 3/18/2025 |
| 9.0.28 | 232 | 3/17/2025 |
| 9.0.27 | 223 | 3/16/2025 |
| 9.0.26 | 238 | 3/13/2025 |
| 9.0.25 | 52,079 | 3/9/2025 |
| 9.0.21 | 304 | 3/6/2025 |
| 9.0.20 | 19,609 | 3/6/2025 |
| 9.0.19 | 290 | 3/6/2025 |
| 9.0.18 | 307 | 3/4/2025 |
| 9.0.17 | 192 | 3/1/2025 |
| 9.0.16 | 185 | 3/1/2025 |
Loading failed