Skip to content

Instantly share code, notes, and snippets.

@badboy
Created January 29, 2014 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badboy/8688448 to your computer and use it in GitHub Desktop.
Save badboy/8688448 to your computer and use it in GitHub Desktop.
r=Redis.new
#=> #<Redis client v3.0.7 for redis://127.0.0.1:6379/0>
s=r.pipelined { ['foo', 'bar', 'baz', 'myhash'].each{|f| r.hgetall(f) } }
#=> [{}, {}, {}, {"field1"=>"Hello", "field2"=>"World"}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment