MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / __init__

Method __init__

pymongo/ocsp_cache.py:54–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 )
53
54 def __init__(self) -> None:
55 self._data: dict[Any, OCSPResponse] = {}
56 # Hold this lock when accessing _data.
57 self._lock = _create_lock()
58
59 def _get_cache_key(self, ocsp_request: OCSPRequest) -> CACHE_KEY_TYPE:
60 return self.CACHE_KEY_TYPE(

Callers

nothing calls this directly

Calls 1

_create_lockFunction · 0.90

Tested by

no test coverage detected