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