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

推荐订阅源

N
News and Events Feed by Topic
D
Docker
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
F
Full Disclosure
H
Hackread – Cybersecurity News, Data Breaches, AI and More
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
L
LangChain Blog
H
Help Net Security
B
Blog
T
Tailwind CSS Blog
V
V2EX
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
Recent Announcements
Recent Announcements
aimingoo的专栏
aimingoo的专栏
美团技术团队
A
About on SuperTechFans
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
I
InfoQ
Project Zero
Project Zero
I
Intezer
Google DeepMind News
Google DeepMind News
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Threat Research - Cisco Blogs
Last Week in AI
Last Week in AI
C
Cyber Attacks, Cyber Crime and Cyber Security
G
GRAHAM CLULEY
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AWS News Blog
AWS News Blog
Spread Privacy
Spread Privacy
S
Securelist
Recorded Future
Recorded Future
D
Darknet – Hacking Tools, Hacker News & Cyber Security
博客园 - 叶小钗
S
Security Affairs
Blog — PlanetScale
Blog — PlanetScale
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
The Hacker News
The Hacker 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