You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using latest version of StackExchange.Redis.Extensions. I am able to connect with local redis, but not able to connect with production redis. Our production server is hosted in Singapore.
I am sharing my code with you. Please correct me.
Local connection working properly for me, same code I am using for production but not working.
var redisConfigurationsProduction = new RedisConfiguration[]
{
new RedisConfiguration
{
AbortOnConnectFail = false,
Hosts = new[] { new RedisHost { Host = "singapore-redis.render.com", Port = 6379 } },
AllowAdmin = false,
ConnectTimeout = 5000,
Database = 0,
PoolSize = 10,
IsDefault = true,
Password= "*******"
}
};
services.AddStackExchangeRedisExtensions<NewtonsoftSerializer>((options) =>
{
return redisConfigurationsProduction;
});
var app = builder.Build();
var redisDatabase = app.Services.GetRequiredService<IRedisDatabase>();
When I am trying to connect Production server and check IsConnected property from Multiplexer, it always shows me false. But it shows true for local redis connection.
I am using latest version of StackExchange.Redis.Extensions. I am able to connect with local redis, but not able to connect with production redis. Our production server is hosted in Singapore.
I am sharing my code with you. Please correct me.
IsConnected
property from Multiplexer, it always shows mefalse
. But it shows true for local redis connection.@imperugo Please suggest me.
The text was updated successfully, but these errors were encountered: