Skip to content

Not able to connect redis production server #514

Open
@jignesh-mpc91

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 me false. But it shows true for local redis connection.

Screenshot 2022-11-04 at 2 36 57 PM

@imperugo Please suggest me.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions