'Retires a token ahead of the timeout.'

def logout(self, token):

    self._log('logout', token=token)
    if (token in self.token_cache):
        del self.token_cache[token]
        return True
    return False
