0

When using redis-cli, I can unregister a RedisGears registration like this:

127.0.0.1:16379> RG.UNREGISTER "0000000000000000000000000000000000000000-4"
OK

When running this command as an inline redis-cli command, it fails:

$ redis-cli "RG_UNREGISTER 0000000000000000000000000000000000000000-6"
(error) ERR unknown command `RG_UNREGISTER 0000000000000000000000000000000000000000-6`, with args beginning with:
$ echo "RG_UNREGISTER 0000000000000000000000000000000000000000-6" | redis-cli 
(error) ERR unknown command `RG_UNREGISTER`, with args beginning with: `0000000000000000000000000000000000000000-6`, 

How do I run RG_UNREGISTER as an inline redis-cli command?

Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174

2 Answers2

1

Also:

redis-cli "RG.UNREGISTER" 0000000000000000000000000000000000000000-6
Itamar Haber
  • 47,336
  • 7
  • 91
  • 117
  • Have you tried this? It fails for me when using redis-cli 5.0.7: `ERR unknown command RG_UNREGISTER, with args beginning with: 0000000000000000000000000000000000000000-26,` – Wolkenarchitekt Jul 21 '21 at 12:34
0

This will unregister a RedisGears registration as an inline redis-cli command:

$ echo "RG.UNREGISTER 0000000000000000000000000000000000000000-8" | redis-cli

This also works:

$ echo "0000000000000000000000000000000000000000-1" redis-cli -x "RG.UNREGISTER"
Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174