---
title: "memcached常用命令"
author: "TimerBin"
date: "2014-05-26T16:13:01Z"
tags: []
categories: ["开源软件"]
slug: "memcached"
draft: false
lastmod: "2014-05-26T16:13:01Z"
id: 2071740
url: "https://timerbin.iteye.com/blog/2071740"
---

一、链接访问命令

telnet  127.0.0.1  11211

二、查询数据命令

根据Key数据信息查询Value信息

get   xxxx123    

xxx ：字符串Key数据信息

123：动态ID数据信息，例如商品ID、会员ID、sessionID。

三、刷新全部Memcached缓存信息

flush\_all 

四、退出telent memcached 链接

]

quit;

一定要先输入‘]’结束字符，再输入quit方可退出