Method: OpenC3::EphemeralStore#initialize
- Defined in:
- lib/openc3/utilities/store_autoload.rb
#initialize(pool_size = 10) ⇒ EphemeralStore
Returns a new instance of EphemeralStore.
232 233 234 235 236 |
# File 'lib/openc3/utilities/store_autoload.rb', line 232 def initialize(pool_size = 10) super(pool_size) @redis_url = "redis://#{ENV['OPENC3_REDIS_EPHEMERAL_HOSTNAME']}:#{ENV['OPENC3_REDIS_EPHEMERAL_PORT']}" @redis_pool = ConnectionPool.new(size: pool_size) { build_redis() } end |