Skip to content

Task to ValueTask conversion in HybridCache - which way is better? #62878

Answered by gfoidl
edsdck asked this question in Q&A
Discussion options

You must be logged in to vote

Option 1.

It's as you said that the async-machinery can be avoided, as it doesn't add any benefit here (only more code and overhead here).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by edsdck
Comment options

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

gfoidl Jul 25, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature-caching Includes: StackExchangeRedis and SqlServer distributed caches area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares
2 participants