From ef772b63b6c17ab4ca925c5f132678dfb935a6f0 Mon Sep 17 00:00:00 2001 From: vaughanbrittonsage Date: Wed, 3 Jan 2018 10:50:02 +0000 Subject: [PATCH] resolve issue with CACHE_STORE_POOL_* env vars not being cast into integer values --- cache_store_redis/lib/cache_store_redis.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cache_store_redis/lib/cache_store_redis.rb b/cache_store_redis/lib/cache_store_redis.rb index 2be472a..e7fd8b0 100644 --- a/cache_store_redis/lib/cache_store_redis.rb +++ b/cache_store_redis/lib/cache_store_redis.rb @@ -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)