(self, clock)
Create a session store with the given IReactorTime provider.
Create a session store with the given IReactorTime provider.
Create a session store with the given IReactorTime provider .
def __init__(self, clock):
        """
        Create a session store with the given IReactorTime provider.
        """
        self.clock = clock
        self._token_to_session = {
            # mapping of token (unicode) to session (Session)
        }
        self._userid_to_session = {
            # mapping of userid (ascii) to session (Session)
        }
        self._tenant_to_session = {
            # mapping of tenant_id (unicode) to session (Session)
        }
        self._username_to_token = {
            # mapping of token (unicode) to username (unicode: key in
            # _token_to_session)
        }
def __init__ ( self , clock ) : self . clock = clock self . _token_to_session = { # mapping of token (unicode) to session (Session) } self . _userid_to_session = { # mapping of userid (ascii) to session (Session) } self . _tenant_to_session = { # mapping of tenant_id (unicode) to session (Session) } self . _username_to_token = { # mapping of token (unicode) to username (unicode: key in # _token_to_session) }