Home / Function/ setSessionCacheEnabled() — netty Function Reference

setSessionCacheEnabled() — netty Function Reference

Architecture documentation for the setSessionCacheEnabled() function in OpenSslSessionContext.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  531dfe6a_651c_ee81_6eda_bfbd32c65401["setSessionCacheEnabled()"]
  6761f03c_910d_c89a_256f_4472ec59d426["OpenSslSessionContext"]
  531dfe6a_651c_ee81_6eda_bfbd32c65401 -->|defined in| 6761f03c_910d_c89a_256f_4472ec59d426
  style 531dfe6a_651c_ee81_6eda_bfbd32c65401 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/OpenSslSessionContext.java lines 173–186

    public void setSessionCacheEnabled(boolean enabled) {
        long mode = enabled ? mask | SSL.SSL_SESS_CACHE_NO_INTERNAL_LOOKUP |
                SSL.SSL_SESS_CACHE_NO_INTERNAL_STORE : SSL.SSL_SESS_CACHE_OFF;
        Lock writerLock = context.ctxLock.writeLock();
        writerLock.lock();
        try {
            SSLContext.setSessionCacheMode(context.ctx, mode);
            if (!enabled) {
                sessionCache.clear();
            }
        } finally {
            writerLock.unlock();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does setSessionCacheEnabled() do?
setSessionCacheEnabled() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/OpenSslSessionContext.java.
Where is setSessionCacheEnabled() defined?
setSessionCacheEnabled() is defined in handler/src/main/java/io/netty/handler/ssl/OpenSslSessionContext.java at line 173.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free