Changing Ping health probe to call Redis Cache Ping method
This commit is contained in:
parent
ff66de0a91
commit
46dcc3d6c7
1 changed files with 4 additions and 2 deletions
|
@ -202,8 +202,10 @@ namespace cartservice.cartstore
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
EnsureRedisConnected();
|
var redis = ConnectionMultiplexer.Connect(redisConnectionOptions);
|
||||||
return true;
|
var cache = redis.GetDatabase();
|
||||||
|
var res = cache.Ping();
|
||||||
|
return res != TimeSpan.Zero;
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue