如何查看内存缓存中的数据? [英] How do I view the data in memcache?

查看:1242
本文介绍了如何查看内存缓存中的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了内存缓存,现在如何真正查看内存缓存中的数据?

I've installed memcache and now how do I really view the data in memcache?

有什么办法可以查看内存缓存中存在于缓存中的数据吗?

Is there any way to see the data present in cache inside memcache?

我怎么真正知道内存缓存是否正在获取存储在其中的数据?

How do I really know whether memcache is getting data stored inside it?

注意:我不想编写任何程序来查看内存缓存中的数据.基本上,memcache服务器已经安装在我的环境中,并且也在缓存数据.但是我想知道是否有任何实用程序可以向我显示内存缓存中的缓存数据,或者是否有任何命令可以向我显示到目前为止缓存的数据.

Note: I don't want to write any program to see the data inside memcache. Basically, memcache server is already installed in my environment and it is caching the data as well. But I would like to know if there are any utility programs available which will show me the cached data inside memcache or if there is any command which will show me the data cached so far.

推荐答案

无法获取memcached以报告其持有的键.我认为这是一种设计选择,因为这样做会对性能产生负面影响.

There is no way to get memcached to report which keys it holds. I believe that this was a design choice as to do so would have a negative impact on performance.

但是,您可以使用任何telnet客户端应用程序来连接memcached服务器并键入命令.这样做是为了获取或设置特定的密钥.

However, you can use any telnet client application to connect the memcached server and type in commands. Doing this to get or set a particular key.

例如,

stats

或:

get MY_KEY

这篇关于如何查看内存缓存中的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆