I am trying to get multiple values from Redis (4.2.2) using Python .
- Using method redisClient.keys(“UniqueID*”) method to get list of keys that match pattern such as “UniqueID10”, “UniqueID11”, “UniqueID13”
- while passing the list of keys to method redisClient.mget([list of keys]) , i am getting the error
mget - all keys must map to the same key slot
Below is the code snippet (Python Library)
import redis
rc = redis.RedisCluster(host,port)
all_keys_list = rc.get_client().keys("UniqueID*")
all_values = rc.get_client().mget(all_keys_list )
Error: mget - all keys must map to the same key slot
According to this AWS page it should work
can somebody what can be the issue?