MCPcopy
hub / github.com/django/django / aload

Method aload

django/contrib/sessions/backends/cache.py:38–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 return {}
37
38 async def aload(self):
39 try:
40 session_data = await self._cache.aget(await self.acache_key())
41 except Exception:
42 session_data = None
43 if session_data is not None:
44 return session_data
45 self._session_key = None
46 return {}
47
48 def create(self):
49 # Because a cache can fail silently (e.g. memcache), we don't know if

Callers

nothing calls this directly

Calls 2

acache_keyMethod · 0.95
agetMethod · 0.45

Tested by

no test coverage detected