async def METHOD_NAME(self, discard: bool = True) -> None:
    """
    Closes all connections in the storage in the `current context`.
    All closed connections will be removed from the storage by default.
    :param discard:
        If ``False``, all connection objects are closed but `retained` in the storage.
    """
    tasks = [conn.close() for conn in self.all()]
    await asyncio.gather(*tasks)
    if discard:
        for alias in self.db_config:
            self.discard(alias)