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

Defined in:
ext/rubysl/openssl/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:



1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
# File 'ext/rubysl/openssl/ossl_ssl.c', line 1297

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