Skip to content

Add CodeCargo.NatsHybridCache package#22

Merged
caleblloyd merged 10 commits intomainfrom
hybrid-cache-extensions
May 18, 2025
Merged

Add CodeCargo.NatsHybridCache package#22
caleblloyd merged 10 commits intomainfrom
hybrid-cache-extensions

Conversation

@caleblloyd
Copy link
Copy Markdown
Contributor

Introduces NatsHybridCacheExtensions which provides extension methods for integrating NATS with Microsoft's HybridCache.

  1. AddNatsHybridCache Method

    • Registers NATS distributed cache with an IServiceCollection
    • Configures HybridCache to use the serializer registry from the NATS connection
    • Supports optional keyed INatsConnection instances
  2. AddNatsHybridCacheSerializerFactory Method

    • Registers an IHybridCacheSerializerFactory created from an INatsSerializerRegistry

Rename root namespace of DistributedCache back to CodeCargo.NatsDistributedCache and new package is CodeCargo.NatsHybridCache

  • Helps avoid namespace collisions when using HybridCache

Caleb Lloyd and others added 10 commits May 17, 2025 01:33
Signed-off-by: Caleb Lloyd <caleb@boxbuild.io>
Signed-off-by: Caleb Lloyd <caleb@boxbuild.io>
Signed-off-by: Caleb Lloyd <caleb@boxbuild.io>
Signed-off-by: Caleb Lloyd <caleb@boxbuild.io>
Signed-off-by: Caleb Lloyd <caleb@boxbuild.io>
@caleblloyd caleblloyd merged commit 3a213c2 into main May 18, 2025
1 check passed
@caleblloyd caleblloyd deleted the hybrid-cache-extensions branch May 18, 2025 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant