Auto-flushing a couchbase bucket

Hi…

I have a bucket of type “Couchbase” and I want to flush it when ever couchbase goes down (manually / crash) and then goes back up. (in case someone updated some information in the DB that didn’t overwrite Couchbase’s old document since he was down at the time).

How can I do that? (without changing the bucket type to Ephermal).