How to measure the size of a Ruby object?

Viewed 12644

I'm having Memcache problems and I was wondering what is the best way to know how big the objects I create are.

The only solution I have is to put them into Memcache which display their size in bytes (by the way, can I customize Memcache's output? I want readable kilobytes…).

Thank you,

Kevin

1 Answers
Related