#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 Mariusz Felisiak):
Replying to [comment:9 Vijay ]:
> Can you please tell me what does `self._cache.decr()` return for a
missing key ?
The same as `self._cache.incr()`, it depends on the library and it's
described in the
[https://github.com/django/django/blob/main/django/core/cache/backends/memcached.py
code]. This doesn't really matter for the ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/33061#comment:10>
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.72021262fe88af0144541caad5d3a64c%40djangoproject.com.