#!/bin/bash
#
# Copyright (c) 2020 Bubble, Inc.  All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
KEY_MATCH="${1:?no key match}"
for k in $(echo 'keys *'"""${KEY_MATCH}"""'*' | redis-cli )  ; do
  echo "del ${k} => $(echo "del ${k}" | redis-cli)"
done
