Purge the cache when changing databases
Caches may have a destroy method to cleanup

Also, remove Cache#prune. MemoryCache now prunes itself when
needed.
Specs wait for cache to be destroyed