lib/bearcat.rb in bearcat-1.5.20 vs lib/bearcat.rb in bearcat-1.5.23
- old
+ new
@@ -1,7 +1,8 @@
require 'bearcat/version'
require 'bearcat/client'
+require 'bearcat/redis_connection'
module Bearcat
class << self
require 'logger'
attr_accessor :master_rate_limit
@@ -35,10 +36,10 @@
@logger
end
def redis_pool
require 'bearcat/redis_connection'
- @redis_pool ||= RedisConnection.create(env_prefix: "BEARCAT")
+ @redis_pool ||= Bearcat::RedisConnection.create(env_prefix: "BEARCAT")
end
def redis
raise ArgumentError, "requires a block" unless block_given?
redis_pool.with do |conn|