lib/redis/commands/strings.rb in redis-5.0.4 vs lib/redis/commands/strings.rb in redis-5.0.5

- old
+ new

@@ -150,11 +150,11 @@ # @param [Hash] hash keys mapping to values # @return [String] `"OK"` # # @see #mset def mapped_mset(hash) - mset(hash.to_a.flatten) + mset(hash.flatten) end # Set one or more values, only if none of the keys exist. # # @example @@ -178,10 +178,10 @@ # @param [Hash] hash keys mapping to values # @return [Boolean] whether or not all values were set # # @see #msetnx def mapped_msetnx(hash) - msetnx(hash.to_a.flatten) + msetnx(hash.flatten) end # Get the value of a key. # # @param [String] key