I'm not at a PC, but IIRC "debug object {key}" returns the "serializedlength". This is, however, entirely undocumented and unsupported - and I don't even know if what it returns can be translated into regular memory usage etc. Another option could be "dump {key}" and measure it - ideally via lua so you don't pay for the bandwidth.
Marc
Given a key, I'm looking to get back the memory utilization of the key. Is there a redis command that'll allow me to get this statistic? This is important to analyze the memory consumption on the key level. I see there are rdb analysis tools that allow me to do something similar however, I'd like to do it in an online manner where I could query the redis server for this info.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
I see there are rdb analysis tools that allow me to do something similar however, I'd like to do it in an online manner where I could query the redis server for this info.