Add cache.purgeall()

Helper method to purge all cache for the database.