#30759: Make cache.delete() return whether or not it suceeded.
-----------------------------------------------+------------------------
Reporter: Simon Charette | Owner: nobody
Type: New feature | Status: new
Component: Core (Cache system) | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------------+------------------------
It can be quite useful when dealing with complex caching/locking systems
or simply for logging purposes.
Memcache clients already returns this value and it should be
straigtforward to implement for file, inmemory, and database backend based
on the number of returned rows.
Redis `del` operation also returns the number of keys it successfully
deleted so it should be implementable if it's eventually added as
discussed on the mailing list.
--
Ticket URL: <https://code.djangoproject.com/ticket/30759>
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/052.b10be96aac8065a8dcb0ca10e9fbda44%40djangoproject.com.