Skip to content

Instantly share code, notes, and snippets.

View selfdeceited's full-sized avatar
🦕
oh look a dinosaur

Anton Ryzhikov selfdeceited

🦕
oh look a dinosaur
View GitHub Profile
@selfdeceited
selfdeceited / redis-delkeys.sh
Last active November 29, 2023 16:46 — forked from jdp/redis-delkeys.sh
Delete keys matching a pattern from Redis (exe Lua script; working on Windows clients)
#!/bin/sh
#
# Usage: ./redis-delkeys.sh [-h host] [-p port] [-n db] "pattern"
#
# Matches keys with the KEYS command matching pattern
# and deletes them from the specified Redis DB.
set -e
HOST="localhost"