//将byte[]写入redis缓存
 public static void WriteRedis(string key, byte[] bytes)
 {
     Task.Run(() =>
     {
         SeRedisHelper.StringSet(key, Convert.ToBase64String(bytes));
     });
 }
 private void WriteRedis()
 {
     while (redislist.Count > 0)
     {
         try
         {
             RedisQueue redisinfo = redislist.Dequeue();
             Task.Run(() =>
             {
                 SeRedisHelper.StringSet(redisinfo.key, Convert.ToBase64String(redisinfo.bytes));
             });
         }
         catch (Exception e)
         {
             Log4Helper.WriteLog(e.ToString());
         }
     }
 }