Method: Redis::Commands::Strings#mapped_mset

Defined in:
lib/redis/commands/strings.rb

#mapped_mset(hash) ⇒ String

Set one or more values.

Examples:

redis.mapped_mset({ "f1" => "v1", "f2" => "v2" })
  # => "OK"

Parameters:

  • hash (Hash)

    keys mapping to values

Returns:

  • (String)

    "OK"

See Also:



154
155
156
# File 'lib/redis/commands/strings.rb', line 154

def mapped_mset(hash)
  mset(hash.flatten)
end