Skip to content

Instantly share code, notes, and snippets.

View darkmakukudo's full-sized avatar
♠️
Focusing

Dark Knight darkmakukudo

♠️
Focusing
View GitHub Profile
@itamarhaber
itamarhaber / scan_del.sh
Created April 20, 2014 22:27
A bash script that deletes Redis keys by pattern using SCAN
#!/bin/bash
if [ $# -ne 3 ]
then
echo "Delete keys from Redis matching a pattern using SCAN & DEL"
echo "Usage: $0 <host> <port> <pattern>"
exit 1
fi
cursor=-1