Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support case where django-redis is not installed #442

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

riconnon
Copy link

In order to support the case where django-redis is not installed make the definition of RedisCache conditional on successfully importing from django_redis.
This will allow a user to make use of NativeRedisCache without installing additional unnecessary dependencies.

In order to support the case where django-redis is not installed make
the definition of `RedisCache` conditional on successfully importing
from `django_redis`.
This will allow a user to make use of `NativeRedisCache` without
installing additional unnecessary dependencies.
@riconnon riconnon closed this Oct 31, 2024
@riconnon riconnon deleted the no-django-redis branch October 31, 2024 23:13
@riconnon riconnon restored the no-django-redis branch October 31, 2024 23:14
@riconnon riconnon reopened this Oct 31, 2024
@riconnon
Copy link
Author

I saw #426 but imo this was doing too much in renaming/breaking APIs.
This should retain compatability and allow using the native cache without the dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant