How to get redis memory usage via java. For example, im gets dbsize redis through the jedis java class using the thisd dbsize () method in this jedis class. Is there a similar method for using memory? Thanks at Advance.
To use memory in my Redis, you can run the INFO command. This will give you a lot of useless information, but somewhere there will be used_mamor and used_memory_human
root@this :~# redis-cli redis> info redis_version:2.2.4 redis_git_sha1:00000000 redis_git_dirty:0 arch_bits:32 ... used_memory:551084 used_memory_human:538.17K used_memory_rss:1249280 ...