def METHOD_NAME(self, sessionid: int):
    """Handle the creation of a cached session or update its status if already in cache"""
    _sessionid = str(sessionid)
    if _sessionid in self.session_project.keys():
        if self.session_project[_sessionid][1] == 'CLOSE':
            tmp = self.session_project[_sessionid]
            self.session_project[_sessionid] = (tmp[0], 'UPDATE')
    else:
        self.create(sessionid)