-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
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
Labels
No labels