我正在尝试使用hashSet方法,它需要一个HashEntry[]数组。
HashSet(RedisKey key, HashEntry[] hashFields, CommandFlags flags = CommandFlags.None);
我正在尝试做这件事,但显然这并不起作用...
我有一个字典值
HashEntry[] hash = new HashEntry[value.Count]();
int index = 0;
foreach (var item in value)
{
hash[index].Name = item.Key;
hash[index].Value = item.Value;
index++;
}