We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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"]); };
The text was updated successfully, but these errors were encountered:
You are overwriting the value of Application ["redisConfigurationOptions"], so it does not work.
Try Application["redisConfigurationOptions"] = ConfigurationOptions.Parse("localhost:6379,password=[YOUR_PASSWORD],allowAdmin=true");
Application["redisConfigurationOptions"] = ConfigurationOptions.Parse("localhost:6379,password=[YOUR_PASSWORD],allowAdmin=true");
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: