What is the size of your objects? If JsonConvert.SerializeObject(foo)
is returning a 500MB string, then yes: you're going to have a bad day.
Also, what else is the server doing? This needs a little digging at the server, but: the redis SLOWLOG
command gives you information into long-running operations. If anything is taking serious time (I'd start to get twitchy at anything that takes more than say 10 milliseconds), then your server is essentially stalling, which needs to be investigated - but that's not something the library can fix.
If you're talking to a far away server, you may want a larger timeout.
Finally, I very much doubt that this particular scenario is related to thread-theft; if anything, that sounds like you're clutching at straws (metaphorically). But if ConnectionMultiplexer.SetFeatureFlag
doesn't exist, you're probably using an old library version. So: what library version are you using?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…