コード例 #1
0
 public static void Using(Action <Helper_Redis> a)
 {
     using (var red = new Helper_Redis())
     {
         a(red);
     }
 }
コード例 #2
0
        public static bool Test()
        {
            bool r = true;

            try
            {
                Helper_Redis.Using(rs => { rs.Use(current); });
            }
            catch (Exception e)
            {
                Helper_log.Write_Error("[Redis] test fail " + e.Message);
                r = false;
            }
            if (r)
            {
                Helper_log.Write_log("[Redis] test ok.");
            }
            return(r);
        }