IMHO avoid memcached if the other two are around (which is the preferred solution).
Have a look at:
- NC 17 Docs » Nextcloud configuration » Memory caching
- You may have better performance when using Un*x sockets instead of the network port for redis-server locally on the same machine.
Hope this helps.