dockermemcached

How to flush all of the cached contents of Docker memcached?


How to flush all of the cached contents of Docker container memcached from command line without restarting memcached?


Solution

  • docker exec -it $MEMCACHE_CONTAINER_ID bash -c "echo flush_all > /dev/tcp/localhost/11211"