added redis tools

This commit is contained in:
2017-11-15 13:40:14 +01:00
parent 9888f178f8
commit 3b33df87fe
18 changed files with 1390 additions and 0 deletions

8
src/redis_tools/flush-all.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
read -p "Really delete all redis data? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
for i in `seq 2337 2344`; do redis-cli -p "$i" flushall; done
fi