You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
你好,有个问题想咨询下。
我们在项目里使用到了CsRedis做为Redis工具类,有个场景是会有循环查询redis多个key的情况。我们压测时发现有8%的几率会抛出以下异常:
---> System.InvalidCastException: Unable to cast object of type 'System.Boolean' to type 'System.String'.
at CSRedis.CSRedisClient.GetAndExecuteAsync[T](RedisClientPool pool, Func2 handerAsync, Int32 jump, Int32 errtimes) at CSRedis.CSRedisClient.ExecuteScalarAsync[T](String key, Func3 handerAsync)
想咨询下导致出现这个异常的原因是什么?如果改成批量读取是否能避免这个问题?
希望能得到解答,谢谢!
The text was updated successfully, but these errors were encountered:
你好,有个问题想咨询下。
我们在项目里使用到了CsRedis做为Redis工具类,有个场景是会有循环查询redis多个key的情况。我们压测时发现有8%的几率会抛出以下异常:
---> System.InvalidCastException: Unable to cast object of type 'System.Boolean' to type 'System.String'.
at CSRedis.CSRedisClient.GetAndExecuteAsync[T](RedisClientPool pool, Func
2 handerAsync, Int32 jump, Int32 errtimes) at CSRedis.CSRedisClient.ExecuteScalarAsync[T](String key, Func
3 handerAsync)想咨询下导致出现这个异常的原因是什么?如果改成批量读取是否能避免这个问题?
希望能得到解答,谢谢!
The text was updated successfully, but these errors were encountered: