Ronny Shibley
Ronny Shibley

Reputation: 2155

redisson.yaml environment variable

I am using Redisson with Spring-boot and I need to pass in an environment variable to redisson.yaml

address: "redis://${REDIS_HOST}:6379"

It's currently not working when passing environment variables.

---
singleServerConfig:
  idleConnectionTimeout: 10000
  pingTimeout: 1000
  connectTimeout: 10000
  timeout: 3000
  retryAttempts: 3
  retryInterval: 1500
  password: null
  subscriptionsPerConnection: 5
  clientName: null
  address: "redis://${REDIS_HOST}:6379"
  subscriptionConnectionMinimumIdleSize: 1
  subscriptionConnectionPoolSize: 50
  connectionMinimumIdleSize: 32
  connectionPoolSize: 64
  database: 0
  dnsMonitoringInterval: 5000
threads: 0
nettyThreads: 0
codec: !<org.redisson.codec.JsonJacksonCodec> {}
transportMode: "NIO"

Upvotes: 1

Views: 3424

Answers (1)

Nikita Koksharov
Nikita Koksharov

Reputation: 10783

This feature already supported in 3.10.0 version

Upvotes: 1

Related Questions