Skip to content

Commit

Permalink
redis first impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitolo-Andrea committed Jan 20, 2025
1 parent c6ebc4c commit 45d77c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ public class RedissonConfig {

@Value("${spring.data.redis.url}")
private String redisUrl;

@Value("${redis.password}")
private String redisPassword;
@Bean
public RedissonReactiveClient redissonClient() {
log.info("[REDISSON-CONFIG] {}",redisUrl);
Config config = new Config();
config.useSingleServer().setAddress(redisUrl);
config.useSingleServer().setAddress(redisUrl).setPassword(redisPassword);
return Redisson.create(config).reactive();
}
}
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spring:
maxConnecting: ${MONGODB_CONNECTIONPOOL_MAX_CONNECTING:2}
redis:
url: ${REDIS_CONNECTION_URL:redis://@localhost:6379}
password: : ${REDIS_CONNECTION_PASSWORD:pluto}
management:
health:
mongo.enabled: ${HEALTH_MONGO_ENABLED:false}
Expand Down

0 comments on commit 45d77c0

Please sign in to comment.