Get redis connection in django4.0

I suspect if you have the cache instance, you can access it via cache._cache.get_client(). Looking at RedisCache, we can see how it creates an instance of RedisCacheClient. Then looking at RedisCacheClient, we can see how it generates a client instance to support the API.

1 Like