From f56129a9479c5a7fa7730a11b0e812bb98ec2ab0 Mon Sep 17 00:00:00 2001 From: mayaeh Date: Wed, 17 Jun 2020 17:31:31 +0900 Subject: [PATCH] Suppress Redis#exists(key) warning (#14067) --- config/initializers/redis.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/initializers/redis.rb b/config/initializers/redis.rb index 7573fc9f775..510194044eb 100644 --- a/config/initializers/redis.rb +++ b/config/initializers/redis.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +Redis.exists_returns_integer = false + redis_connection = Redis.new( url: ENV['REDIS_URL'], driver: :hiredis