ctstone / csredis

.NET client for Redis and Redis Sentinel (2.8). Includes both synchronous and asynchronous clients.
Other
292 stars 111 forks source link

redisClient.Set(key, val): when the val is a string that ends with "]}" that part is droped #20

Closed ofirgeller closed 10 years ago

ofirgeller commented 10 years ago

by looking at the string before it is set and then later inside redis i see that the last part is now missing "]}" making the value a malformed json. i now do this before every set

if(val.EndsWith("]}")) { val = val + "]}" }

and that makes it work.

ctstone commented 10 years ago

I believe this is a duplicate of #19. There were a few instances of high-order characters that were not properly encoded and the extra byte in the character was getting dropped. Fix coming soon.