Open
Description
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 mefalse
. But it shows true for local redis connection.
@imperugo Please suggest me.
Metadata
Assignees
Labels
No labels
Activity