@echo off
set keysfile=redis-cached-keys.txt
redis-cli -n 1 keys "test*" > %keysfile%
FOR /F %%i in (%keysfile%) DO (redis-cli -n 1 del %%i)
DEL /F /Q %keysfile%
pause
@echo off
set keysfile=redis-cached-keys.txt
redis-cli -n 1 keys "test*" > %keysfile%
FOR /F %%i in (%keysfile%) DO (redis-cli -n 1 del %%i)
DEL /F /Q %keysfile%
pause