Re: What is the contract of a cache backend regarding errors?

2016-12-26 Thread Adam Johnson
Hi Jean, I wrote a cache backend for MySQL in Django-MySQL and didn't add any special error handling. Like the builtin database cache backend, it uses the same connection as the ORM, so if an error does occur it's pretty likely the whole request is broken anyway. If you look at the code,

What is the contract of a cache backend regarding errors?

2016-12-25 Thread Jean Hominal
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