Create a new session key, while retaining the current session data.
(self)
| 440 | self.delete(key) |
| 441 | |
| 442 | async def acycle_key(self): |
| 443 | """ |
| 444 | Create a new session key, while retaining the current session data. |
| 445 | """ |
| 446 | data = await self._aget_session() |
| 447 | key = self.session_key |
| 448 | await self.acreate() |
| 449 | self._session_cache = data |
| 450 | if key: |
| 451 | await self.adelete(key) |
| 452 | |
| 453 | # Methods that child classes must implement. |
| 454 |