public bool Ping() { using (var client = new RedisNativeClient(ConfigurationManager.AppSettings["RedisServer"])) { return(client.Ping()); } }
private static void ConRedis() { try { using (RedisNativeClient RNC = GetNativeClientForKeySpace(space)) { RNC.Ping(); } IsCon = true; } catch { IsCon = false; } }