Skip to content

Is there a package to use HybridCache with Redis in .NET Aspire 9? #7353

Answered by mgravell
BrunoCandia asked this question in Q&A
Discussion options

You must be logged in to vote

HybridCache is a consumer of distributed cache. So: AddRedisDistributedCache and AddHybridCache together should do what you want. I'll defer to @sebastienros on whether there should be a one-shot for this.

Side note: the main difference between the backends for output-cache and distributed-cache is: tags; hybrid-cache adds tags inside of distributed-cache. That means that it should be possible to - and I'll intend to try to - implement output-cache over hybrid-cache. This should reduce the amount of setup, allow better connection sharing, and enable output-cache on more backends (there are more DC backends than OC backends).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@danmoseley
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by davidfowl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants