Open RoinBi opened 4 years ago
You can convert it into a kV array.
RedisHelper.HMSet(key, kvArray);
I need this method too
You can convert it into a kV array.
RedisHelper.HMSet(key, kvArray);
for example?
RedisHelper.HMSet(key, "field1", "value1", "field2", "value2");
OR
Dictionary<string,object> keyValues = ...;
object[] objects = keyValues.Select(kv => new object[] { kv.Key, kv.Value }).SelectMany(a => a).ToArray();
RedisHelper.HMSet(key, objects);
I need this method