redis如何获取某个db的内存占用大小?
黄舟
黄舟 2017-04-22 08:56:31
0
1
805

注意,我要获取的不是整体的内存占用大小,也不是key的个数,而是实际的内存占用大小,前两者都有现成命令可以解决,但是后者貌似还没有相关命令。

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
黄舟

I think this problem can probably be solved with the answer to this sf question.

TL;DR It is not feasible to start with the redis command. If you really want to, change the redis source code. However, in practice, you should not use too many dbs. One is enough. Judging from the various memory usage of redis, it should be enough.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template