Запустить memcached в докере

Под мак.

docker pull memcached:alpine
docker run --name memcached -d --restart=always --publish 11211:11211 memcached:alpine
telnet localhost 11211
ctrl+]
docker ps
docker stop <id>

https://hub.docker.com/_/memcached/
https://github.com/sameersbn/docker-memcached

Вдогонку — как смотреть статистику в мемкэше.

telnet localhost 11211
> stats
> stats items
> set key 0 900 4
data
> get key

https://blog.elijaa.org/2010/05/21/memcached-telnet-command-summary/
http://www.alphadevx.com/a/90-Accessing-Memcached-from-the-command-line

LEAVE A COMMENT