The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

rkeys 517 B

4 år sedan
4 år sedan
123456789101112131415
  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. # Dump data from redis for keys matching a pattern
  6. #
  7. # Usage: rkeys keytext
  8. #
  9. # keytext : any key that contains this text will be dumped
  10. # the dump text that is printed is "key => dump(value)"
  11. #
  12. KEY_MATCH="${1}"
  13. for k in $(echo 'keys *'"""${KEY_MATCH}"""'*' | redis-cli) ; do
  14. echo "$k => $(echo "dump $k" | redis-cli | strings)"
  15. done