Method: OpenC3::Store#initialize
- Defined in:
- lib/openc3/utilities/store_autoload.rb
#initialize(pool_size = 10) ⇒ Store
Returns a new instance of Store.
78 79 80 81 82 83 |
# File 'lib/openc3/utilities/store_autoload.rb', line 78 def initialize(pool_size = 10) @redis_username = ENV['OPENC3_REDIS_USERNAME'] @redis_key = ENV['OPENC3_REDIS_PASSWORD'] @redis_url = "redis://#{ENV['OPENC3_REDIS_HOSTNAME']}:#{ENV['OPENC3_REDIS_PORT']}" @redis_pool = ConnectionPool.new(size: pool_size) { build_redis() } end |