Memory Caching: Multi Webserver setting

My Nextcloud 19 is up and running. However, there is a warning that I have not set up my memory cache. In my machine, there are two web servers running. I find the following passage in their Doc:

" If you run multiple web servers and enable a distributed cache in your config.php ( memcache.distributed ) or a file locking provider ( memcache.locking ) you need to make sure that they are referring to the very same memcache server and not to localhost or a unix socket."

How do I refer the web servers to the same memcache server? I am using Redis.


Both are used to run Nextcloud? Normally by the cache setup from the docs is if you have a large setup with a load balancer in the front that redirect to two different webservers (two machines) and they need to have access to the same caching server, then you can configure the host of the redis server:

'memcache.distributed' => '\OC\Memcache\Redis',
'redis' => [
     'host' => '',
     'port' => 6379,

that both webservers can use.

If you run Nextcloud on one host, I’d run the caching server locally and only connect through sockets.