MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / put

Method put

web/pgadmin/utils/session.py:263–279  ·  view source on GitHub ↗
(self, session)

Source from the content-addressed store, hash-verified

261 return session
262
263 def put(self, session):
264 with sess_lock:
265 self.parent.put(session)
266
267 # Do not store the session if skip paths
268 for sp in self.skip_paths:
269 if request.path.startswith(sp):
270 return
271
272 if session.sid in self._cache:
273 try:
274 del self._cache[session.sid]
275 except Exception:
276 pass
277
278 self._cache[session.sid] = session
279 self._normalize()
280
281
282class FileBackedSessionManager(SessionManager):

Callers

nothing calls this directly

Calls 2

_normalizeMethod · 0.95
putMethod · 0.45

Tested by

no test coverage detected