Method: OpenSSL::SSL::SSLContext#session_cache_size=

Defined in:
ossl_ssl.c

#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.

Returns:



1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
# File 'ossl_ssl.c', line 1453

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;
}