Skip to content

Instantly share code, notes, and snippets.

@eik3
Created May 22, 2017 17:29
Show Gist options
  • Save eik3/1b71ddd30e13a5b7ef0a1894d89ae90f to your computer and use it in GitHub Desktop.
Save eik3/1b71ddd30e13a5b7ef0a1894d89ae90f to your computer and use it in GitHub Desktop.
k=k$RANDOM
function r {
redis-cli -p 16379 $*
}
count=$1
i=0
while [ $i -lt $count ]; do
sleep .1
let i+=1
echo `date -uIn` counter:$i incr:`r incrby $k 1` server:`r info server | grep port`
done
r get $k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment