#36830: Store the cache alias on the cache backend instance
-------------------------------------+-------------------------------------
     Reporter:  amirreza             |                    Owner:  amirreza
         Type:  New feature          |                   Status:  assigned
    Component:  Core (Cache system)  |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:  cache                |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by amirreza:

Old description:

> this has been discussed in the new-features repository
> https://github.com/django/new-features/issues/95
>
> as mentioned other parts of django (orm and django.tasks) are already
> doing this
> and it also greatly helps 3rd party libraries that work with django's
> cache framework, `django-redis`, `django-valkey` and `django-debug-
> toolbar` to name a few
>
> considering the size of this proposal, i am not sure if this requires a
> dep, if so, please let me know and i'll start working on one

New description:

 this has been discussed in the new-features repository
 https://github.com/django/new-features/issues/95

 this proposal will change how cache backends are instantiated, so the
 instance will be aware of the alias name configured for each backend

 it would require the existing backends to be updated to match the new
 syntax
 3rd party libraries would probably need to update as well

 as mentioned other parts of django (orm and django.tasks) are already
 doing this
 and it also greatly helps 3rd party libraries that work with django's
 cache framework, `django-redis`, `django-valkey` and `django-debug-
 toolbar` to name a few

 considering the size of this proposal, i am not sure if this requires a
 dep, if so, please let me know and i'll start working on one

--
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36830#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019b5b8f9d1e-6270f581-895e-4eb7-92bc-3e6519994114-000000%40eu-central-1.amazonses.com.

Reply via email to