2017-07-01 63 views

回答

2

在一個新的客戶端PING一樣只需運行一個命令,e.g:

try 
{ 
    using (var redis = new RedisClient(connectionString)) 
    { 
     var connected = redis.Ping(); 
    } 
} 
catch (Exception ex) 
{ 
    //connection failed 
}