lib/fakeredis/expiring_hash.rb in fakeredis-0.5.0 vs lib/fakeredis/expiring_hash.rb in fakeredis-0.6.0

- old
+ new

@@ -32,10 +32,10 @@ expires.delete(key) end def expired?(key) key = normalize key - expires.include?(key) && expires[key] < Time.now + expires.include?(key) && expires[key] <= Time.now end def key?(key) key = normalize key delete(key) if expired?(key)