Skip to content

Instantly share code, notes, and snippets.

View zeroxs's full-sized avatar

Sharon Fox zeroxs

View GitHub Profile
@zeroxs
zeroxs / redis-delkeys.sh
Created November 29, 2023 16:46 — forked from selfdeceited/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"

Keybase proof

I hereby claim:

  • I am zeroxs on github.
  • I am rensia (https://keybase.io/rensia) on keybase.
  • I have a public key ASA8dThjIfrJJt531aj1ba7v8WChnTWWKDv9wFsBfbya-go

To claim this, I am signing this object: