destroy_db

Function destroy_db 

Source
fn destroy_db(path: &Path)
Expand description

Remove the db at path if there is one, so that the cache always starts empty.

entry_count starts at 0, so silently reopening a db that could not be destroyed would reuse stale entries (possibly left in a bad state) that are not accounted for.