Memcache 文本协议备忘单?

发布于 2024-08-27 15:12:52 字数 386 浏览 4 评论 0原文

Memcached 接口是使用文本协议实现的。

有时,通过使用 shell 功夫调用 netcat 来获取存储在远程服务器上的数据非常有用,例如:要下载夜间数据处理作业的 XML 结果,您可能会运行如下命令:

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

这里有趣的部分是 < strong>获取 SOME_UNIQUE_KEY,这是 memcached 协议的一部分。

关于仅使用命令行工具与 memcached 交互的能力,您还有什么其他有用的建议?

谢谢你, 格言。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

坠似风落 2024-09-03 15:12:52

如果您在 Google 上搜索 protocol.txt,您会在第一个搜索中找到我们的整个文本协议定义。

您可以从那里创建一个备忘单,但实际上,它是一个有线协议而不是命令行。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文