From 1743d445b9c2196e52cb26a38105a6132242c059 Mon Sep 17 00:00:00 2001 From: Jakob Pupke Date: Sat, 3 Apr 2021 11:50:06 +0200 Subject: [PATCH] support redis cluster by default --- lib/rails_performance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rails_performance.rb b/lib/rails_performance.rb index 921816d..c9fc82c 100755 --- a/lib/rails_performance.rb +++ b/lib/rails_performance.rb @@ -23,7 +23,7 @@ module RailsPerformance FORMAT = "%Y%m%dT%H%M" mattr_accessor :redis - @@redis = Redis::Namespace.new("#{::Rails.env}-rails-performance", redis: Redis.new) + @@redis = Redis::Namespace.new("{#{::Rails.env}-rails-performance}", redis: Redis.new) mattr_accessor :duration @@duration = 4.hours