#33061: ValueError not raised by some cache backends for incr() / decr() with
negative delta when a key is missing
-------------------------------------+------------------------------------
Reporter: Chris Jerdonek | Owner: nobody
Type: Bug | Status: new
Component: Core (Cache system) | Version: 3.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+------------------------------------
Comment (by Vijay ):
Replying to [comment:8 Mariusz Felisiak]:
> Replying to [comment:7 Sondre Lillebø Gundersen]:
> >
> > The missing key would not be raised from `incr` but from `decr`,
right? Perhaps I'm missing the point 🙂
>
>
> You're missing that it calls `self._cache.decr()` not `self.decr()`.
Can you please tell me what does `self._cache.decr()` return for a non-
existing key ?
--
Ticket URL: <https://code.djangoproject.com/ticket/33061#comment:9>
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.3f42bdbb1ac7e14fdec1fb72c8aa360c%40djangoproject.com.