redis - The previous queued operation has not been committed 错误在 ServiceStack Redis 客户端

标签 redis servicestack

我试图在 ServiceStack Redis Client 中为我的文章实例实现“级联”存储。只有一笔交易。这是 QueueCommand 的奇怪错误吗?为什么会出现此错误?

trans.QueueCommand(p => p.IncrementValue(KeyHelper.GetAutoIncrementKey(article)),
                                   id => article.Id = id);

评论提示:trans.AddRangeToSet 方法无法将 trans.CurrentQueuedOperation 设置为 NULL!!

最佳答案

我使用 AddRangeToSet 方法作为空字符串列表作为值。 我已发送拉取请求。

https://github.com/ServiceStack/ServiceStack.Redis/pull/53

关于redis - The previous queued operation has not been committed 错误在 ServiceStack Redis 客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10906746/

相关文章:

redis - 从 YCSB 加载 Redis 中的数据时出错

servicestack - 服务堆栈 XmlServiceClient 在 VS 2013 中结果为 null,但在 VS 2012 中工作正常

c# - 服务堆栈在过滤器中杀死一个 HTTP 请求

servicestack - ServiceClientBase 的异常处理程序

c# - OrmLite SqlList<T> 不适用于可空枚举属性?

c# - StackExchange.Redis ListRightPop 不等待结果

redis - 使用sadd操作添加后如何检索Redis集的所有键

redis - 带有 Redis 数据的 JMeter 样本顺序

dependency-injection - 如何使用 Func(servicestack fork)注册通用接口(interface)

redis - Jedis Client的RedisTemplate如何在一次调用中获取多个列表值