Help setting up Memcached in Craft 3
The docs here are what you need: https://docs.craftcms.com/v3/config/app.html#memcached-example

Which is 99% exactly what Yii uses (since they have an example of using multiple servers): https://www.yiiframework.com/doc/api/2.0/yii-caching-memcache