]> cat aescling's git repositories - mastodon.git/commitdiff
Suppress Redis#exists(key) warning (#14067)
authormayaeh <mayaeh@marimo-net.org>
Wed, 17 Jun 2020 08:31:31 +0000 (17:31 +0900)
committerGitHub <noreply@github.com>
Wed, 17 Jun 2020 08:31:31 +0000 (10:31 +0200)
config/initializers/redis.rb

index 7573fc9f77533f59fa55900ab680be5a1b268fba..510194044eb8f11779ae227c2a4a98b5a146d338 100644 (file)
@@ -1,5 +1,7 @@
 # frozen_string_literal: true
 
+Redis.exists_returns_integer = false
+
 redis_connection = Redis.new(
   url: ENV['REDIS_URL'],
   driver: :hiredis