Created
July 24, 2010 17:47
-
-
Save jzawodn/488846 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/perl -w | |
$|++; | |
use strict; | |
use Redis; | |
my $r = Redis->new(server => 'localhost:63790') or die "$!"; | |
for my $key (1..100_000_000) { | |
my $val = int(rand($key)); | |
$r->set("$$:$key", $val) or die "$!"; | |
} | |
exit; | |
__END__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment