Skip to content

Instantly share code, notes, and snippets.

@antirez
Created March 7, 2010 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save antirez/324695 to your computer and use it in GitHub Desktop.
Save antirez/324695 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'redis'
r = Redis.new
(0..100000).each{|i|
["name","surname","age","sex","password"].each{|field|
if false
r.set("obj#{i}#{field}","foo")
else
r.hset("obj#{i}",field,"foo")
end
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment