class Schked::RedisLocker

def redis_client(redis_conf)

def redis_client(redis_conf)
  if Gem::Version.new(Redlock::VERSION) >= Gem::Version.new("2.0.0")
    ConnectionPool::Wrapper.new { RedisClientFactory.build(redis_conf) }
  else
    ConnectionPool::Wrapper.new { Redis.new(**redis_conf) }
  end
end