Skip to content

Instantly share code, notes, and snippets.

@chibicco
Created August 17, 2015 08:48
Show Gist options
  • Select an option

  • Save chibicco/c174617aba34dfa278fd to your computer and use it in GitHub Desktop.

Select an option

Save chibicco/c174617aba34dfa278fd to your computer and use it in GitHub Desktop.
memcached Cheat Sheet, One-liner.
#!/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