Method: Redis::Commands::Hashes#hmget
- Defined in:
- lib/redis/commands/hashes.rb
#hmget(key, *fields, &blk) ⇒ Array<String>
Get the values of all the given hash fields.
89 90 91 92 |
# File 'lib/redis/commands/hashes.rb', line 89 def hmget(key, *fields, &blk) fields.flatten!(1) send_command([:hmget, key].concat(fields), &blk) end |