qbit-ext/redis/src/main/java/io/advantageous/qbit/kvstore/RedisKeyValueStoreBuilder.java
public RedisKeyValueStoreBuilder setRedisUri(final URI uri) {

        getRedisOptions().setPort(uri.getPort());
        getRedisOptions().setHost(uri.getHost());

        final String userInfo = uri.getUserInfo();
        final String[] split = Str.split(userInfo);

        if (split.length == 2) {
            getRedisOptions().setAuth(split[1]);
        } else if (split.length == 1) {
            getRedisOptions().setAuth(split[0]);
        }

        return this;
    }
public RedisKeyValueStoreBuilder setRedisUri(final URI uri) {

        getRedisOptions().setPort(uri.getPort());
        getRedisOptions().setHost(uri.getHost());

        final String userInfo = uri.getUserInfo();
        final String[] split = Str.split(userInfo);

        if (split.length == 2) {
            getRedisOptions().setAuth(split[1]);
        } else if (split.length == 1) {
            getRedisOptions().setAuth(split[0]);
        }

        return this;
    }
public RedisKeyValueStoreBuilder setRedisUri ( final URI uri ) { getRedisOptions ( ) . setPort ( uri . getPort ( ) ) ; getRedisOptions ( ) . setHost ( uri . getHost ( ) ) ; final String userInfo = uri . getUserInfo ( ) ; final String [ ] split = Str . split ( userInfo ) ; if ( split . length == 2 ) { getRedisOptions ( ) . setAuth ( split [ 1 ] ) ; } else if ( split . length == 1 ) { getRedisOptions ( ) . setAuth ( split [ 0 ] ) ; } return this ; }
RedisKeyValueStoreBuilder redis://redisdb:<password>@<host>:<port>/0

@return this
RedisKeyValueStoreBuilder redis : // redisdb : <password > @<host > : <port > / 0