Method: Redis#mapped_hmget
- Defined in:
- lib/redis.rb
#mapped_hmget(key, *fields) ⇒ Hash
Get the values of all the given hash fields.
1874 1875 1876 1877 1878 1879 1880 1881 1882 |
# File 'lib/redis.rb', line 1874 def mapped_hmget(key, *fields) hmget(key, *fields) do |reply| if reply.kind_of?(Array) Hash[fields.zip(reply)] else reply end end end |