示例#1
0
 /// <summary>
 /// hash表批量获取数据
 /// </summary>
 /// <param name="key"></param>
 /// <param name="fields"></param>
 public byte[][] HMGet(string key, List <string> fields)
 {
     byte[][] byteKeys = new byte[fields.Count][];
     for (int i = 0; i < fields.Count; i++)
     {
         byteKeys[i] = LibConvert.StrToBytes(fields[i]);
     }
     return(redisCli.HMGet(key, byteKeys));
 }