def __init__(self, connection_class=Connection, max_connections=None, **connection_kwargs):
    "\n        Create a connection pool. If max_connections is set, then this\n        object raises redis.ConnectionError when the pool's limit is reached.\n\n        By default, TCP connections are created connection_class is specified.\n        Use redis.UnixDomainSocketConnection for unix sockets.\n\n        Any additional keyword arguments are passed to the constructor of\n        connection_class.\n        "
    max_connections = (max_connections or (2 ** 31))
    if ((not isinstance(max_connections, (int, long))) or (max_connections < 0)):
        raise ValueError('"max_connections" must be a positive integer')
    self.connection_class = connection_class
    self.connection_kwargs = connection_kwargs
    self.max_connections = max_connections
    self.reset()
Create a connection pool. If max_connections is set, then this
object raises redis.ConnectionError when the pool's limit is reached.

By default, TCP connections are created connection_class is specified.
Use redis.UnixDomainSocketConnection for unix sockets.

Any additional keyword arguments are passed to the constructor of
connection_class.
def __init__(self, connection_class=Connection, max_connections=None, **connection_kwargs):
    "\n        Create a connection pool. If max_connections is set, then this\n        object raises redis.ConnectionError when the pool's limit is reached.\n\n        By default, TCP connections are created connection_class is specified.\n        Use redis.UnixDomainSocketConnection for unix sockets.\n\n        Any additional keyword arguments are passed to the constructor of\n        connection_class.\n        "
    max_connections = (max_connections or (2 ** 31))
    if ((not isinstance(max_connections, (int, long))) or (max_connections < 0)):
        raise ValueError('"max_connections" must be a positive integer')
    self.connection_class = connection_class
    self.connection_kwargs = connection_kwargs
    self.max_connections = max_connections
    self.reset()