#33061: ValueError not raised by some cache backends for incr() / decr() with
negative delta?
-------------------------------------+-------------------------------------
Reporter: Chris Jerdonek | Owner: nobody
Type: Bug | Status: closed
Component: Core (Cache system) | Version: 3.2
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => needsinfo
Comment:
> ... it looks like `ValueError` isn't being raised when it should be.
Why do you think that we should raise an error in this case? I found
nothing in our docs or code to suggest that negative delta is forbidden 🤔
It works on all cache backends.
--
Ticket URL: <https://code.djangoproject.com/ticket/33061#comment:3>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/067.c83b54b3147008ffff760e1593bd5564%40djangoproject.com.