MCPcopy
hub / github.com/django/django / save

Method save

django/contrib/sessions/backends/cached_db.py:88–93  ·  view source on GitHub ↗
(self, must_create=False)

Source from the content-addressed store, hash-verified

86 )
87
88 def save(self, must_create=False):
89 super().save(must_create)
90 try:
91 self._cache.set(self.cache_key, self._session, self.get_expiry_age())
92 except Exception:
93 logger.exception("Error saving to cache (%s)", self._cache)
94
95 async def asave(self, must_create=False):
96 await super().asave(must_create)

Callers

nothing calls this directly

Calls 2

get_expiry_ageMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected