python-memcached
python-memcached copied to clipboard
Allow delete() to change the "expected" param.
Currently delete() calls _deletetouch() with [b'DELETED', b'NOT_FOUND']. We would like to have an option to pass lists of expected results and customize this behavior, because we don't treat passing a non existent key as a succeeded deletion (see related discussion).