惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
D
Docker
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客
美团技术团队
V
V2EX
Last Week in AI
Last Week in AI
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
B
Blog RSS Feed
博客园_首页
B
Blog
博客园 - 叶小钗
I
InfoQ
WordPress大学
WordPress大学
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
The Register - Security
The Register - Security
MyScale Blog
MyScale Blog
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
Latest news
Latest news
W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
C
CXSECURITY Database RSS Feed - CXSecurity.com
Recent Commits to openclaw:main
Recent Commits to openclaw:main
N
News and Events Feed by Topic
S
Secure Thoughts
The Hacker News
The Hacker News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News

memcached

理解 memcached 源码 - Slab I - V2EX memcached 确实缺少一些高级特性 - V2EX 学习 memcached 的一些记录 - V2EX
memcached 有没有什么比较好用的命令行工具? - V2EX
Livid · 2017-02-27 · via memcached
 

Livid · · 2017 年 2 月 27 日 · 7311 次点击

这是一个创建于 3395 天前的主题,其中的信息可能已经有所发展或是发生改变。

虽然可以 telnet localhost 11211 操作,但是不支持用上下键获得之前的指令,不是太方便。 memcached 有类似像 redis-cli 那样的命令行工具么?

zjuhwc

2

zjuhwc      2017 年 2 月 27 日 via iPhone   ❤️ 1

装对应的 Python 包,在 ipython 里操作

xofyarg

3

xofyarg      2017 年 2 月 27 日   ❤️ 9

如果只是希望获得 readline 的功能,可以尝试套一个前端,比如 socat:
socat READLINE,history=/path/to/history TCP4:127.1:11211,crnl

Livid

4

Livid      2017 年 5 月 25 日

谢谢 @xofyarg

我把下面这条加到我的 .profile 里了:

alias mc='socat READLINE,history=/path/to/history TCP4:127.1:11211,crnl'

然后只要输入 mc 就可以进入到一个类似 redis-cli 的使用体验。

在 macOS 上需要先安装 socat:

brew install socat