package com.quizdeck.RedisDB;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import redis.clients.jedis.Protocol;

import java.net.URI;
import java.net.URISyntaxException;

@Configuration
public class ProdDatabaseConfiguration {

    @Bean
    public JedisConnectionFactory jedisConnFactory() {

        try {
            String redistogoUrl = System.getenv("REDISTOGO_URL");
            URI redistogoUri = new URI(redistogoUrl);

            JedisConnectionFactory jedisConnFactory = new JedisConnectionFactory();

            jedisConnFactory.setUsePool(true);
            jedisConnFactory.setHostName(redistogoUri.getHost());
            jedisConnFactory.setPort(redistogoUri.getPort());
            jedisConnFactory.setTimeout(Protocol.DEFAULT_TIMEOUT);
            jedisConnFactory.setPassword(redistogoUri.getUserInfo().split(":", 2)[1]);

            return jedisConnFactory;

        } catch (URISyntaxException e) {
            e.printStackTrace();
            return null;
        }
    }
}
@@ -507,16 +507,17 @@
 EDIS
-TOGO_URL
+CLOUD_URI
 %22);%0A
@@ -1140,8 +1140,9 @@
 %0A    %7D%0A%7D
+%0A

Update ProdDatabaseConfiguration.java