Skip to content

Instantly share code, notes, and snippets.

@jtomson
Created December 14, 2021 20:17
Show Gist options
  • Save jtomson/7583fb149db7ca5e73829f8a18f826b3 to your computer and use it in GitHub Desktop.
Save jtomson/7583fb149db7ca5e73829f8a18f826b3 to your computer and use it in GitHub Desktop.
dump all memcached keys to file
expect -c '
log_file <file>
spawn telnet <server> <port>
sleep 3
send "lru_crawler metadump all\r"
expect "END"
' >/dev/null&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment