ForgeTrust.AppSurface.Caching
0.1.0-preview.2
See the version list below for details.
dotnet add package ForgeTrust.AppSurface.Caching --version 0.1.0-preview.2
NuGet\Install-Package ForgeTrust.AppSurface.Caching -Version 0.1.0-preview.2
<PackageReference Include="ForgeTrust.AppSurface.Caching" Version="0.1.0-preview.2" />
<PackageVersion Include="ForgeTrust.AppSurface.Caching" Version="0.1.0-preview.2" />
<PackageReference Include="ForgeTrust.AppSurface.Caching" />
paket add ForgeTrust.AppSurface.Caching --version 0.1.0-preview.2
#r "nuget: ForgeTrust.AppSurface.Caching, 0.1.0-preview.2"
#:package ForgeTrust.AppSurface.Caching@0.1.0-preview.2
#addin nuget:?package=ForgeTrust.AppSurface.Caching&version=0.1.0-preview.2&prerelease
#tool nuget:?package=ForgeTrust.AppSurface.Caching&version=0.1.0-preview.2&prerelease
ForgeTrust.AppSurface.Caching
Caching primitives for AppSurface applications built on top of Microsoft.Extensions.Caching.Memory.
Overview
This package provides a small, focused caching layer for AppSurface modules. It is designed for scenarios where you want consistent memoization behavior, cache policies, and a module you can register into the AppSurface startup pipeline.
Key Types
AppSurfaceCachingModule: Registers the package services into the AppSurface module system.IMemo/Memo: Memoization helpers for caching computed values and async results.CachePolicy: A simple policy object for configuring expiration and cache behavior.
Usage
Register the module in your application and inject IMemo where you want to cache repeated work:
public sealed class MyModule : AppSurfaceCachingModule
{
}
Use memoization for expensive or repeated lookups:
var result = await memo.GetOrCreateAsync(
"docs:index",
() => LoadDocsAsync(),
new CachePolicy());
Notes
- The package builds on
Microsoft.Extensions.Caching.Memory, so it works well for in-process application caching. - This package is intentionally lightweight and fits best when you want simple, application-level caching rather than a distributed cache abstraction.
| 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
- ForgeTrust.AppSurface.Core (>= 0.1.0-preview.2)
- Microsoft.Extensions.Caching.Memory (>= 9.0.6)
- Microsoft.Extensions.Hosting (>= 9.0.6)
- Microsoft.Extensions.Logging.Console (>= 9.0.6)
- Microsoft.Extensions.Options (>= 9.0.6)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ForgeTrust.AppSurface.Caching:
| Package | Downloads |
|---|---|
|
ForgeTrust.AppSurface.Docs
ForgeTrust.AppSurface.Docs package for AppSurface application composition. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0-preview.8 | 1,636 | 8/23/2026 |
| 0.2.0-preview.7 | 274 | 8/16/2026 |
| 0.2.0-preview.6 | 190 | 8/12/2026 |
| 0.2.0-preview.5 | 218 | 8/1/2026 |
| 0.2.0-preview.4 | 167 | 7/18/2026 |
| 0.2.0-preview.2 | 73 | 7/3/2026 |
| 0.2.0-preview.1 | 76 | 6/28/2026 |
| 0.1.0 | 144 | 7/2/2026 |
| 0.1.0-rc.4 | 84 | 6/16/2026 |
| 0.1.0-rc.3 | 89 | 6/8/2026 |
| 0.1.0-rc.2 | 74 | 6/3/2026 |
| 0.1.0-rc.1 | 78 | 5/31/2026 |
| 0.1.0-preview.4 | 75 | 5/25/2026 |
| 0.1.0-preview.3 | 78 | 5/20/2026 |
| 0.1.0-preview.2 | 80 | 5/14/2026 |