Skip to content

Commit

Permalink
Add script to emit all keys from Redis (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
topher200 authored Dec 9, 2024
1 parent 6408280 commit cac7e39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions files/bin/list-all-redis-keys.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Iterate through databases 0 to 19
for db in {0..19}; do
echo "Scanning database $db..."
redis-cli -n "$db" --scan --pattern '*'
done

0 comments on commit cac7e39

Please sign in to comment.