Method: Xunch::RedisClient#hmget
- Defined in:
- lib/xunch/shard/redis.rb
#hmget(keys, *fields) ⇒ Object
multi get hash type keys with fields
158 159 160 161 162 163 164 165 166 167 |
# File 'lib/xunch/shard/redis.rb', line 158 def hmget(keys,*fields) # block = lambda { |args| p args } with do | redis | redis.pipelined do keys.each { | key | redis.mapped_hmget(key, *fields) } end end end |