Skip to content

Instantly share code, notes, and snippets.

@ferki
Created April 20, 2016 14:46
Show Gist options
  • Select an option

  • Save ferki/fb99838e6c5566fb1f84aabbde03514d to your computer and use it in GitHub Desktop.

Select an option

Save ferki/fb99838e6c5566fb1f84aabbde03514d to your computer and use it in GitHub Desktop.
load file into redis
time perl -MRedis::Fast -MPath::Tiny=path -E 'my $redis = Redis::Fast->new; my $fh = path($ARGV[0])->openr_raw; while (my $line = <$fh>) { chomp $line; $redis->rpush("adjust_logs", $line) }' ferki.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment