Created
May 7, 2013 16:12
-
-
Save dvliman/5533852 to your computer and use it in GitHub Desktop.
redis memory consumption for 1 million key value pairs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'redis' | |
require 'faker' | |
r = Redis.new | |
(0..1000000).each do | |
name = Faker::Name.name | |
content = Faker::Lorem.sentence | |
puts "Name: #{name}, Content: #{content}" | |
r.set(name, content) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment