We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0e5718 commit 3692a9dCopy full SHA for 3692a9d
dotnet/src/dotnetframework/Providers/Cache/GxMemcached/GxMemcached.cs
@@ -56,6 +56,13 @@ MemcachedClient InitCache()
56
#else
57
58
MemcachedClientConfiguration config = new MemcachedClientConfiguration();
59
+ if (!String.IsNullOrEmpty(username) || !String.IsNullOrEmpty(password))
60
+ {
61
+ config.Authentication.Type = typeof(PlainTextAuthenticator);
62
+ config.Authentication.Parameters["userName"] = username;
63
+ config.Authentication.Parameters["password"] = password;
64
+ config.Authentication.Parameters["zone"] = string.Empty;
65
+ }
66
#endif
67
if (!String.IsNullOrEmpty(address))
68
{
0 commit comments