lib/fakeredis/expiring_hash.rb in fakeredis-0.7.0 vs lib/fakeredis/expiring_hash.rb in fakeredis-0.8.0
- old
+ new
@@ -42,13 +42,11 @@
delete(key) if expired?(key)
super
end
def values_at(*keys)
- keys.each do |key|
- key = normalize(key)
- delete(key) if expired?(key)
- end
+ keys = keys.map { |key| normalize(key) }
+ keys.each { |key| delete(key) if expired?(key) }
super
end
def keys
super.select do |key|