Skip to content

Instantly share code, notes, and snippets.

@Neoglyph
Created August 21, 2019 08:07
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 Neoglyph/aefc3830596e6d630655b22dffa79272 to your computer and use it in GitHub Desktop.
Save Neoglyph/aefc3830596e6d630655b22dffa79272 to your computer and use it in GitHub Desktop.
REDIS delete keys by pattern
Lets say your keys start with `sync:`
Removes the whole key store
redis-cli --scan --pattern sync:* | xargs redis-cli del
Removes the key store for a specific parameter
redis-cli --scan --pattern sync:PARAMETER | xargs redis-cli del
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment