Hello, I am considering writing a cache backend for Django based on a recent Couchbase SDK (2.0+).
While it is quite straightforward to write, I would like to know what is expected from a cache backend when errors happen. With my experience using the python-memcached backend, my understanding is that: * On read operations, any errors result in a "None" return value (as if the value was not found); * On write operations, errors are silenced, with one exception; * On an "add" operation, if e.g. a network error has happened, "0" is returned instead of "False". That lets a client make a distinction between such errors and the key already existing. Is that understanding accurate? In particular, is the third point contractual? Thank you in advance. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/12bdf965-eba7-4f81-8ce0-bd8803d4d726%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.