Duplicate Values Retrieved in List Key Type Entry in Garnet Cluster Using StackExchange.Redis
In the Garnet Cluster, duplicate values are being retrieved for List Key type entries in StackExchange.Redis (showing double values). However, the correct values are displayed in the redis-cli command prompt. We are using StackExchange.Redis in our application.
StackExchage.Redis Code (retrieved duplicate values) var length = GetRedisDb().ListLength("test"); var redisValue = GetRedisDb().ListRange("test", 0, length - 1); var res = redisValue.Select(s => JsonConvert.DeserializeObject(Serialize(s))); Actual values are 4 but 8 values are displayed
Redis-Cli Command (correct values are displayed) 127.0.0.1:6379> LRANGE test 0 7 Actual 4 values are displayed
We really don't make up values so something has to be replicating here. Can you describe what's happening? e.g. are the values each repeated twice, do you have 4 other random values, something else?
Tagging @mgravell who has some interesting tools here that may help...