문제

Memcached interface is implemented using a textual protocol.

Sometimes it's very useful to be to fetch data stored on your remote server simply by invoking netcat with some shell kung fu, for example: To download the XML result of your nightly data crunching job you might run something like:

echo "get 95ec6c7693ec53771c8a3fb1061562b8" | nc localhost 11211 > console_overview_06_04_2010.xml

The interesting part here is get SOME_UNIQUE_KEY which is part of the memcached protocol.

What other useful usages can you suggest in regard to the ability to interact with memcached using nothing more then command line tools?

Thank you, Maxim.

도움이 되었습니까?

해결책

If you do a google search for protocol.txt you'll find our entire textual protocol definition as the first hit.

You could create a cheatsheet from there, but in reality, it's a wire protocol more than a commandline.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top