'Enable/disable session caching and specify the mode used.
:param mode: One or more of the SESS_CACHE_* flags (combine using
bitwise or)
:returns: The previously set caching mode.'

def set_session_cache_mode(self, mode):

    if (not isinstance(mode, integer_types)):
        raise TypeError('mode    must    be    an    integer')
    return _lib.SSL_CTX_set_session_cache_mode(self._context, mode)
