MCPcopy
hub / github.com/django/django / _aget_session

Method _aget_session

django/contrib/sessions/backends/base.py:257–266  ·  view source on GitHub ↗
(self, no_load=False)

Source from the content-addressed store, hash-verified

255 return self._session_cache
256
257 async def _aget_session(self, no_load=False):
258 self.accessed = True
259 try:
260 return self._session_cache
261 except AttributeError:
262 if self.session_key is None or no_load:
263 self._session_cache = {}
264 else:
265 self._session_cache = await self.aload()
266 return self._session_cache
267
268 _session = property(_get_session)
269

Callers 13

asetMethod · 0.95
agetMethod · 0.95
apopMethod · 0.95
asetdefaultMethod · 0.95
adelete_test_cookieMethod · 0.95
aupdateMethod · 0.95
ahas_keyMethod · 0.95
akeysMethod · 0.95
avaluesMethod · 0.95
aitemsMethod · 0.95
acycle_keyMethod · 0.95
asaveMethod · 0.80

Calls 1

aloadMethod · 0.95

Tested by

no test coverage detected