lib/socrates/storage/redis.rb in socrates-0.1.25 vs lib/socrates/storage/redis.rb in socrates-0.1.26
- old
+ new
@@ -10,10 +10,10 @@
def initialize(url: "redis://localhost")
@redis = ::Redis.new(url: url)
end
def has_key?(key)
- @redis.exists(key)
+ @redis.exists?(key)
end
def clear(key)
@redis.del(key)
end