public static void Using(Action <Helper_Redis> a) { using (var red = new Helper_Redis()) { a(red); } }
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); }