module Stockpile::RedisConnections
Stockpile::RedisConnections
¶ ↑
Wrapper around pools of Redis connections to allow multiple Redis database support
Public Instance Methods
compression?(db:)
click to toggle source
# File lib/stockpile/redis_connections.rb, line 25 def compression?(db:) instance_variable_get("@#{db}_compression".to_sym) end
with(db:) { |connection| ... }
click to toggle source
# File lib/stockpile/redis_connections.rb, line 29 def with(db:) instance_variable_get("@#{db}".to_sym).with do |connection| yield connection end end