Skip to content

Instantly share code, notes, and snippets.

@effkay
Created January 4, 2011 08:36
Show Gist options
  • Save effkay/764541 to your computer and use it in GitHub Desktop.
Save effkay/764541 to your computer and use it in GitHub Desktop.
redis memory usage
#!/bin/sh
if [ "$1" == "-h" ]; then
redis-cli info | grep 'used_memory_human:' | cut -d ':' -f2
else
redis-cli info | grep 'used_memory:' | cut -d ':' -f2
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment