Skip to content

async cache population #3455

Answered by Darksonn
barkanido asked this question in Q&A
Discussion options

You must be logged in to vote

To be clear, a Redis read operation is not necessarily considered blocking. This would only be the case if you used a library that did not use async IO for talking to the Redis server. Or in the words of my blog post on blocking, it would only be blocking if it performs the IO without an await.

I recommend you just make sure to use async IO, because then you will not need spawn_blocking.

Replies: 1 comment

Comment options

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