@classmethod<EOL><INDENT>def connectAlt(cls, redisConnectionParams):<DEDENT>
if not isinstance(redisConnectionParams, dict):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>hashVal = hashDictOneLevel(redisConnectionParams)<EOL>modelDictCopy = copy.deepcopy(dict(cls.__dict__))<EOL>modelDictCopy['<STR_LIT>'] = redisConnectionParams<EOL>ConnectedIndexedRedisModel = type('<STR_LIT>' + cls.__name__ + str(hashVal), cls.__bases__, modelDictCopy)<EOL>return ConnectedIndexedRedisModel<EOL>
connectAlt - Create a class of this model which will use an alternate connection than the one specified by REDIS_CONNECTION_PARAMS on this model.

@param redisConnectionParams <dict> - Dictionary of arguments to redis.Redis, same as REDIS_CONNECTION_PARAMS.

@return - A class that can be used in all the same ways as the existing IndexedRedisModel, but that connects to a different instance.

  The fields and key will be the same here, but the connection will be different. use #copyModel if you want an independent class for the model