diff --git a/cache-provider-redis/pom.xml b/cache-provider-redis/pom.xml index 494afceb2b7..4b1b5d0a037 100644 --- a/cache-provider-redis/pom.xml +++ b/cache-provider-redis/pom.xml @@ -40,12 +40,10 @@ 3.8.0 2.22.0 3.3.0 - 3.2.3 2.2.1 1.5 3.0.1 3.2.0 - 2.9.0 2.8.1 1.6.7 @@ -87,12 +85,10 @@ org.springframework.boot spring-boot-starter-data-redis - ${spring-boot-starter-data-redis.version} redis.clients jedis - ${jedis.version} diff --git a/cache-provider-redis/src/main/java/io/mosip/commons/packet/cache/provider/redis/config/RedisConfig.java b/cache-provider-redis/src/main/java/io/mosip/commons/packet/cache/provider/redis/config/RedisConfig.java index a2b29c767c3..b5d9a4faee0 100644 --- a/cache-provider-redis/src/main/java/io/mosip/commons/packet/cache/provider/redis/config/RedisConfig.java +++ b/cache-provider-redis/src/main/java/io/mosip/commons/packet/cache/provider/redis/config/RedisConfig.java @@ -12,6 +12,9 @@ public class RedisConfig { @Value("${redis.cache.hostname}") private String hostname; + @Value("${redis.cache.password}") + private String password; + @Value("${redis.cache.port}") private int port; @@ -21,6 +24,7 @@ JedisConnectionFactory jedisConnectionFactory() { = new JedisConnectionFactory(); jedisConFactory.setHostName(hostname); jedisConFactory.setPort(port); + jedisConFactory.setPassword(password); return jedisConFactory; }