add mongo_type and cache_type