Skip to content

Commit

Permalink
Upgrade Redis to 4.2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed Jun 16, 2020
1 parent d7e3017 commit 3075db3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/mini_profiler/storage/redis_store.rb
Expand Up @@ -33,7 +33,7 @@ def load(id)

def set_unviewed(user, id)
key = user_key(user)
if redis.exists(prefixed_id(id))
if redis.exists?(prefixed_id(id))
expire_at = Process.clock_gettime(Process::CLOCK_MONOTONIC).to_i + redis.ttl(prefixed_id(id))
redis.zadd(key, expire_at, id)
end
Expand All @@ -44,7 +44,7 @@ def set_all_unviewed(user, ids)
key = user_key(user)
redis.del(key)
ids.each do |id|
if redis.exists(prefixed_id(id))
if redis.exists?(prefixed_id(id))
expire_at = Process.clock_gettime(Process::CLOCK_MONOTONIC).to_i + redis.ttl(prefixed_id(id))
redis.zadd(key, expire_at, id)
end
Expand Down
2 changes: 1 addition & 1 deletion rack-mini-profiler.gemspec
Expand Up @@ -33,7 +33,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'activerecord', '~> 3.0'
s.add_development_dependency 'dalli'
s.add_development_dependency 'rspec', '~> 3.6.0'
s.add_development_dependency 'redis'
s.add_development_dependency 'redis', '~> 4.2.1'
s.add_development_dependency 'sassc'
s.add_development_dependency 'flamegraph'
s.add_development_dependency 'rubocop'
Expand Down

0 comments on commit 3075db3

Please sign in to comment.