skip to Main Content

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?

2

Answers


  1. Chosen as BEST ANSWER

    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"
    

  2. Also:

    redis-cli "RG.UNREGISTER" 0000000000000000000000000000000000000000-6
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search