Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
resolve issue with CACHE_STORE_POOL_* env vars not being cast into in…
Browse files Browse the repository at this point in the history
…teger values
  • Loading branch information
vaughanbrittonsage committed Jan 3, 2018
1 parent be1f6ef commit ef772b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cache_store_redis/lib/cache_store_redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def self.pool(config)
end

def self.pool_size
@pool_size ||= ENV['CACHE_STORE_POOL_SIZE'] || 10
@pool_size ||= Integer(ENV['CACHE_STORE_POOL_SIZE'] || 20)
end

def self.pool_timeout
@pool_size ||= ENV['CACHE_STORE_POOL_TIMEOUT'] || 1
@pool_size ||= Integer(ENV['CACHE_STORE_POOL_TIMEOUT'] || 1)
end

def initialize(namespace = nil, config = nil)
Expand Down

0 comments on commit ef772b6

Please sign in to comment.