I'm running a FastAPI that makes some external calls to fetch data and it use the cache decorator to store the auth tokens; The app works with in-memory and Redis Backend (usually in-memory for local dev, but I tried to test the code for both backends)
Now, recently I'm moving from sync calls to async calls; I mean, from requests
to httpx
but I did notice the httpx
calls fails when I use redis as cache Backend but works properly when in-memory.
Any ideas to troubleshoot this problem?