method
should_compress?
v3.2.13 -
Show latest stable
- Class:
ActiveSupport::Cache::Entry
should_compress?(serialized_value, options)private
No documentation available.
# File activesupport/lib/active_support/cache.rb, line 629
def should_compress?(serialized_value, options)
if options[:compress]
compress_threshold = options[:compress_threshold] || DEFAULT_COMPRESS_LIMIT
return true if serialized_value.size >= compress_threshold
end
false
end