Method: Redis::Commands::Strings#mapped_mget
- Defined in:
- lib/redis/commands/strings.rb
#mapped_mget(*keys) ⇒ Hash
Get the values of all the given keys.
219 220 221 222 223 224 225 226 227 |
# File 'lib/redis/commands/strings.rb', line 219 def mapped_mget(*keys) mget(*keys) do |reply| if reply.is_a?(Array) Hash[keys.zip(reply)] else reply end end end |