Skip to content

Instantly share code, notes, and snippets.

@rahul286
Last active May 2, 2023 23:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rahul286/c86901887fcc12c3e60dc8e2888ecd6a to your computer and use it in GitHub Desktop.
Save rahul286/c86901887fcc12c3e60dc8e2888ecd6a to your computer and use it in GitHub Desktop.
Useful redis cli commands

Redis Keys Count by Group (namespace)

redis-cli KEYS "*" | awk -F: '{print $1'} | sort | uniq -c

Count WordPress transient

redis-cli KEYS "*" | grep ":transient:" | wc -l

Display WordPress transient

redis-cli KEYS "*" | grep ":transient:" 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment