@Override
    public boolean add(RedisClusterNode redisClusterNode) {

        synchronized (partitions) {
            LettuceAssert.notNull(redisClusterNode, "RedisClusterNode must not be null");

            boolean add = getPartitions().add(redisClusterNode);
            updateCache();
            return add;
        }
    }
@ Override public boolean add ( RedisClusterNode redisClusterNode ) { synchronized ( partitions ) { LettuceAssert . notNull ( redisClusterNode , "RedisClusterNode must not be null" ) ; boolean add = getPartitions ( ) . add ( redisClusterNode ) ; updateCache ( ) ; return add ; } }
Adds the {@link RedisClusterNode} to this {@link Partitions}.

@param redisClusterNode must not be {@literal null}
@return {@literal true} if this {@link Partitions} changed as a result of the call