Search code examples
azureredisazure-redis-cachehyperloglog

How to migrate hyperloglog key to azure redis


I am trying to migrate an redis hyperloglog key from one server to azure redis service using the MIGRATE command, but as far as i know MIGRATE doesn't support moving key to a redis server which requires authentication.

How can i migrate hyperlolog key then?


Solution

  • You can code it on any client, an HyperLogLog is just a string. You can probably GET the string on the source server and SET on the destination.

    x = Server1.StringGet(key);
    Server2.StringSet(key, x);
    

    redis-cli example