Returns the size of the
cached value. This
could be less than value.size if the data is
compressed.
# File activesupport/lib/active_support/cache.rb, line 612
def size
if @value.nil?
0
elsif @value.respond_to?(:bytesize)
@value.bytesize
else
Marshal.dump(@value).bytesize
end
end