我正在为 Redis 使用 Booksleeve 哈希 API。我正在执行以下操作:
CurrentConnection.Hashes.Set(0, "item:1", "priority", task.priority.ToString());
var taskResult = CurrentConnection.Hashes.GetString(0, "item:1", "priority");
taskResult.Wait();
var priority = Int32.Parse(taskResult.Result)
但是我得到一个聚合异常:“针对持有错误值的键的 ERR 操作”
我不确定我在这里做错了什么(除了阻止任务:))。
注意:CurrentConnection 是 BookSleeve.RedisConnection 的一个实例
请帮忙!
谢谢