def connectCached(self, endpoint, protocolFactory,
                      extraWork=lambda x: x,
                      extraHash=None):
        key = endpoint, extraHash
        D = Deferred()
        if key in self.cachedConnections:
            D.callback(self.cachedConnections[key])
        elif key in self.inProgress:
            self.inProgress[key].append(D)
        else:
            self.inProgress[key] = [D]
            endpoint.connect(
                _CachingClientFactory(
                    self, key, protocolFactory,
                    extraWork))
        return D
Returns a string containing a description of these options and how to
dataset/ETHPy150Open twisted/vertex/vertex/conncache.py/ConnectionCache.connectCached--crossover with--dataset/ETHPy150Open rapyuta/rce/rce-console/rce/console/console.py/CustomOptions.getSynopsis