0

enter image description here

I want all idbclients, whats it script form redis cli?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
ich will
  • 17
  • 5

1 Answers1

1

Take a look at http://redis.io/commands where you'll find all commands. It's worth to have a good feeling for them before using a GUI. Selecting a number of keys with a pattern is documented at http://redis.io/commands/keys.

So in your case simply call keys urn:idbclients:* in the CLI (or if you're scripting then run this command from inside your script using your client library).

themue
  • 7,626
  • 2
  • 25
  • 28
  • 2
    Just to be clear - Redis doesn't have a single command to delete keys based on a pattern so scripting is the way to do it. For an example of such a script (which uses the safer SCAN instead of KEYS) see here: http://stackoverflow.com/a/23399125/3160475 – Itamar Haber Oct 28 '14 at 09:12