instance method
OpenSSL::SSL::SSLContext#session_cache_size=
(::Integer) -> ::Integer
ctx.session_cache_size=(integer) → Integer
ext/openssl/ossl_ssl.c
View on GitHub ↗
static VALUE
ossl_sslctx_set_session_cache_size(VALUE self, VALUE arg)
{
SSL_CTX *ctx;
GetSSLCTX(self, ctx);
SSL_CTX_sess_set_cache_size(ctx, NUM2LONG(arg));
return arg;
}
Sets the session cache size. Returns the previously valid session cache size. Zero is used to represent an unlimited session cache size.
See also
#session_cache_size
#session_cache_stats
#session_cache_mode=
#session_remove
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0