This method is deprecated or moved on the latest stable version.
The last existing version (v6.0.0) is shown here.
size()
public
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 775
def size
case value
when NilClass
0
when String
@value.bytesize
else
@s ||= Marshal.dump(@value).bytesize
end
end