Skip to content

Commit 3692a9d

Browse files
Set missing zone for Memcached.
1 parent c0e5718 commit 3692a9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dotnet/src/dotnetframework/Providers/Cache/GxMemcached/GxMemcached.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ MemcachedClient InitCache()
5656
#else
5757

5858
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+
}
5966
#endif
6067
if (!String.IsNullOrEmpty(address))
6168
{

0 commit comments

Comments
 (0)