CacheOrchestrator.Bus
2.1.0
dotnet add package CacheOrchestrator.Bus --version 2.1.0
NuGet\Install-Package CacheOrchestrator.Bus -Version 2.1.0
<PackageReference Include="CacheOrchestrator.Bus" Version="2.1.0" />
<PackageVersion Include="CacheOrchestrator.Bus" Version="2.1.0" />
<PackageReference Include="CacheOrchestrator.Bus" />
paket add CacheOrchestrator.Bus --version 2.1.0
#r "nuget: CacheOrchestrator.Bus, 2.1.0"
#:package CacheOrchestrator.Bus@2.1.0
#addin nuget:?package=CacheOrchestrator.Bus&version=2.1.0
#tool nuget:?package=CacheOrchestrator.Bus&version=2.1.0
CacheOrchestrator.Bus
Cluster command bus for CacheOrchestrator.
Add this package when you run more than one instance and you need an invalidation, a Version change, or a TTL change to take effect on every node. You get an HTTP bus that delivers those commands to the peers you configure.
Install
dotnet add package CacheOrchestrator
dotnet add package CacheOrchestrator.Bus
Register
builder.Services.AddCacheOrchestrator(builder.Configuration, o =>
{
o.AddHttpClusterBus();
});
app.MapCacheOrchestratorHttpBus();
Configure
{
"Cache": {
"Namespace": "app1",
"InstanceId": "app1-a",
"Cluster": {
"Bus": {
"Enabled": true,
"Membership": "Static",
"ApiKey": "…",
"Static": {
"Instances": [
{ "Id": "app1-a", "Url": "http://10.0.0.1:8080" },
{ "Id": "app1-b", "Url": "http://10.0.0.2:8080" }
]
}
}
}
}
}
Membership may also be ServiceDiscovery (Microsoft.Extensions.ServiceDiscovery). Peers authenticate POST …/cluster/apply with X-Cache-Admin-Key (Cache:Cluster:Bus:ApiKey, or Cache:Admin:ApiKey if the bus key is empty).
Guide: cluster-bus.md. Overview: GitHub README.
License
MIT — LICENSE.md
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- CacheOrchestrator (>= 2.1.0)
- Microsoft.Extensions.ServiceDiscovery (>= 9.0.0)
-
net8.0
- CacheOrchestrator (>= 2.1.0)
- Microsoft.Extensions.ServiceDiscovery (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
CacheOrchestrator 2.1.0
Additive library updates: Cache:Metrics:IncludeEndpointLabel (optional route tag on OC/FC meters; default true). Local Admin GET …/cluster/info without requiring CacheOrchestrator.Bus. Stats DTOs prefer factoryShare (originShare kept as obsolete synonym). Endpoint key resolved once per request for Admin counters and metrics. Bus skips duplicate cluster/info when Local Admin already maps it.
Full notes: https://github.com/amarinsek/CacheOrchestrator/blob/main/CHANGELOG.md