Skip to content

Instantly share code, notes, and snippets.

@ondrej-kvasnovsky
Last active August 29, 2015 14:03
Show Gist options
  • Save ondrej-kvasnovsky/c89bb4890482b045addf to your computer and use it in GitHub Desktop.
Save ondrej-kvasnovsky/c89bb4890482b045addf to your computer and use it in GitHub Desktop.
Memcached
# get setting
echo "stats settings" | nc localhost 11211
# get current memory usage
echo "stats" | nc -w 1 localhost 11211 | awk '$2 == "bytes" { print $2" "$3 }'
# start in verbose mode
/usr/local/bin/memcached -vv
# start with higher memory
/usr/local/bin/memcached -m 2048
# flush all
echo 'flush_all' | nc localhost 11211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment