diff --git a/lib/mock_redis/string_methods.rb b/lib/mock_redis/string_methods.rb index f6fb5a4..fb9c50a 100644 --- a/lib/mock_redis/string_methods.rb +++ b/lib/mock_redis/string_methods.rb @@ -212,7 +212,7 @@ def mapped_msetnx(hash) # Parameter list required to ensure the ArgumentError is returned correctly # rubocop:disable Metrics/ParameterLists - def set(key, value, ex: nil, px: nil, exat: nil, pxat: nil, nx: nil, xx: nil, keepttl: nil, + def set(key, value, _hash = nil, ex: nil, px: nil, exat: nil, pxat: nil, nx: nil, xx: nil, keepttl: nil, get: nil) key = key.to_s retval = self.get(key) if get