8 lines
282 B
Ruby
8 lines
282 B
Ruby
# Redis configuration
|
|
# Development/test: localhost:6379 (default)
|
|
# Production: set REDIS_URL env variable, e.g. redis://redis.example.com:6379/0
|
|
|
|
RedisConnection = ConnectionPool.new(size: 5, timeout: 5) do
|
|
Redis.new(url: ENV.fetch("REDIS_URL", "redis://localhost:6380/0"))
|
|
end
|