Skip to content

Instantly share code, notes, and snippets.

@almet
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almet/8bc90b189f7f12bf0d00 to your computer and use it in GitHub Desktop.
Save almet/8bc90b189f7f12bf0d00 to your computer and use it in GitHub Desktop.
#!/bin/bash
host=$1
redis-cli -h $host info
echo -e "========\n\n"
for key in "spurl" "callurl" "userUrls" "call" "userCalls" "callstate" "hawkuser" "userid" "hawk" "oauth.token" "oauth.state"
do
echo -n "Number of keys for $key "
redis-cli -h $host KEYS "$key.*" | wc -l | sort -k 2 -nr
done
@deanwilson
Copy link

!/bin/bash

host=$1

redis-cli -h $host info

echo -e "========\n\n"
for key in "spurl" "callurl" "userUrls" "call" "userCalls" "callstate" "hawkuser" "userid" "hawk" "oauth.token" "oauth.state"
do
echo -n "Number of keys for $key "
redis-cli -h $host KEYS "$key.*" | wc -l | sort -k 2 -nr
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment