tlslite.sessioncache module¶
Class for caching TLS sessions.
-
class
tlslite.sessioncache.
SessionCache
(maxEntries=10000, maxAge=14400)¶ Bases:
object
This class is used by the server to cache TLS sessions.
Caching sessions allows the client to use TLS session resumption and avoid the expense of a full handshake. To use this class, simply pass a SessionCache instance into the server handshake function.
This class is thread-safe.
-
__getitem__
(sessionID)¶
-
__init__
(maxEntries=10000, maxAge=14400)¶ Create a new SessionCache.
- Parameters
-
__setitem__
(sessionID, session)¶
-