Installation with Homebrew
brew install memcached installs the server. Start it as a background service with brew services start memcached, which listens on 127.0.0.1:11211. Verify the binary with memcached -V.
Configuration
Homebrew runs Memcached with default flags. To change the memory limit or listen address, run it manually — for example memcached -m 256 -l 127.0.0.1 — or edit the service plist. Memcached has no configuration file; everything is set via command-line flags.
Security
Memcached has no authentication and must never be reachable from untrusted networks (it has historically been abused for UDP amplification attacks). Keep it bound to 127.0.0.1, and disable UDP with -U 0 if you only need TCP.