StackExchange.Redis icon indicating copy to clipboard operation
StackExchange.Redis copied to clipboard

Duplicate Values Retrieved in List Key Type Entry in Garnet Cluster Using StackExchange.Redis

Open wessisaac opened this issue 10 months ago • 1 comments

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

wessisaac avatar Mar 29 '25 18:03 wessisaac

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...

NickCraver avatar Apr 29 '25 15:04 NickCraver