Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

OpenSSL::SSL::SSLContext#session_cache_size=

(::Integer) -> ::Integer
ctx.session_cache_size=(integer) → Integer

Sets the session cache size. Returns the previously valid session cache size. Zero is used to represent an unlimited session cache size.