Skip to content

Instantly share code, notes, and snippets.

@jzawodn
Created July 24, 2010 17:47
Show Gist options
  • Save jzawodn/488846 to your computer and use it in GitHub Desktop.
Save jzawodn/488846 to your computer and use it in GitHub Desktop.
#!/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