Created
August 17, 2015 08:48
-
-
Save chibicco/c174617aba34dfa278fd to your computer and use it in GitHub Desktop.
memcached Cheat Sheet, One-liner.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| exit 1 | |
| # get item list | |
| echo -e 'stats items \n quit' | curl -s -T - telnet://localhost:11211 | |
| # get by key | |
| echo -e 'get keyname \n quit' | curl -s -T - telnet://localhost:11211 | |
| # flush all | |
| echo -e 'flush_all \n quit' | curl -s -T - telnet://localhost:11211 | |
| # delete by key | |
| echo -e 'delet keyname \n quit' | curl -s -T - telnet://localhost:11211 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment