Hi all!
I am writing to ask for your help.
I’m using Django 5.0. I created a model that should clear the cache after saving the instance. I’m using Redis cache.
Trying to clear the cache cache.clear()
results in an error:
AbstractConnection.init() got an unexpected keyword argument ‘CLIENT_CLASS’.
The error stops occurring if you comment out the CLIENT_CLASS
parameter in the settings
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"LOCATION": "redis://localhost:6379",
# "OPTIONS": {
# "CLIENT_CLASS": "django_redis.client.DefaultClient",
# }
}
It seems to me that the error occurs because the CLIENT_CLASS
parameter is not fully implemented and may cause errors in some cases.
Give advice on how to test this hypothesis, and is there a method to correct the error?