Orleans.Lattice.Caching.AzureBlob
9.9.0
dotnet add package Orleans.Lattice.Caching.AzureBlob --version 9.9.0
NuGet\Install-Package Orleans.Lattice.Caching.AzureBlob -Version 9.9.0
<PackageReference Include="Orleans.Lattice.Caching.AzureBlob" Version="9.9.0" />
<PackageVersion Include="Orleans.Lattice.Caching.AzureBlob" Version="9.9.0" />
<PackageReference Include="Orleans.Lattice.Caching.AzureBlob" />
paket add Orleans.Lattice.Caching.AzureBlob --version 9.9.0
#r "nuget: Orleans.Lattice.Caching.AzureBlob, 9.9.0"
#:package Orleans.Lattice.Caching.AzureBlob@9.9.0
#addin nuget:?package=Orleans.Lattice.Caching.AzureBlob&version=9.9.0
#tool nuget:?package=Orleans.Lattice.Caching.AzureBlob&version=9.9.0
Orleans.Lattice.Caching.AzureBlob
Optional, opt-in Azure Blob Storage IDistributedCache for
Orleans.Lattice.
Implements the ASP.NET Core IDistributedCache abstraction against an Azure
Storage account, so a multi-replica web head has a shared, off-cluster cache
without needing Redis or SQL:
- Each entry is a single block blob; the value is the blob content and the expiry (absolute cap, sliding window, and current effective instant) lives in blob metadata.
- Arbitrary caller keys are hashed to a fixed, storage-legal blob name, so any key is safe.
- Sliding expiration is supported and advanced on read; expiry is enforced lazily (an expired entry reads as a miss and is best-effort evicted).
It targets low-churn, small-value workloads - most notably a Microsoft.Identity.Web distributed token cache for a hosted, multi-replica console such as the Orleans.Lattice Explorer. Register it once:
builder.Services.AddAzureBlobDistributedCache(options =>
{
options.ConnectionString = "UseDevelopmentStorage=true";
options.ContainerName = "orleans-lattice-cache";
});
The cache is registered through the standard IDistributedCache seam, so any
consumer that resolves the abstraction uses the Azure Blob backend. The last
registration wins, so this call selects the blob backend over an earlier
AddDistributedMemoryCache.
| 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
- Azure.Storage.Blobs (>= 12.29.1)
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Options (>= 10.0.11)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.