#!/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}"
for k in $(echo 'keys *'"""${KEY_MATCH}"""'*' | redis-cli)  ; do
  echo "$k => $(echo "dump $k" | redis-cli | strings)"
done
