Browse Source

add rkeys and rdelkeys scripts

tags/v0.12.2
Jonathan Cobb 4 years ago
parent
commit
2307003210
3 changed files with 13 additions and 1 deletions
  1. +5
    -0
      bin/rdelkeys
  2. +5
    -0
      bin/rkeys
  3. +3
    -1
      bubble-server/src/main/resources/ansible/bubble_scripts.txt

+ 5
- 0
bin/rdelkeys View File

@@ -0,0 +1,5 @@
#!/bin/bash
PREFIX="${1:?no prefix}"
for k in $(echo 'keys '"""${PREFIX}"""'*' | redis-cli ) ; do
echo "del ${k} => $(echo "del ${k}" | redis-cli)"
done

+ 5
- 0
bin/rkeys View File

@@ -0,0 +1,5 @@
#!/bin/bash
PREFIX="${1}"
for k in $(echo 'keys '"""${PREFIX}"""'*' | redis-cli ) ; do
echo "$k => $(echo "get $k" | redis-cli)"
done

+ 3
- 1
bubble-server/src/main/resources/ansible/bubble_scripts.txt View File

@@ -15,4 +15,6 @@ bencrypt
bdecrypt
list_bubble_databases
cleanup_bubble_databases
install_packer.sh
install_packer.sh
rkeys
rdelkeys

Loading…
Cancel
Save