Skip to content

How to provide Password #28

@chandudinesh

Description

@chandudinesh

Hi,

My current redis instance is password protected.
In the obsolete 'GetRedisServerAddress' Method, we have privilege to add password for redis server.

Can you please provide code snippet how to add 'password' information using ConfigurationOptions.

This is what i've used. It didn't work.

  Application["redisConfigurationOptions"] = new ConfigurationOptions
        {
            AllowAdmin = true,
            Password = "Omg@123"                
        };

        Application["redisConfigurationOptions"] = ConfigurationOptions.Parse("localhost:6379");          

        RedisConnectionConfig.GetSERedisServerConfig = (HttpContextBase context) =>
        {
            return new KeyValuePair<string, ConfigurationOptions>(
                "redisConnection",   
                (ConfigurationOptions)Application["redisConfigurationOptions"]);
        };

Metadata

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