报这样的错误:
System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (0x00000005): Device not configured
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at Enyim.Caching.Memcached.PooledSocket.ConnectWithTimeout(Socket socket, EndPoint endpoint, Int32 timeout)
at Enyim.Caching.Memcached.PooledSocket..ctor(EndPoint endpoint, TimeSpan connectionTimeout, TimeSpan receiveTimeout, ILogger logger)
at Enyim.Caching.Memcached.MemcachedNode.CreateSocket()
这个错误是因为dns解析失败,需要在 hosts 中添加 memcached
的解析
EnyimMemcachedCore 的配置详见: https://github.com/cnblogs/EnyimMemcachedCore/blob/dotnetcore/README.mdown
是解析到localhost吗:
System.TimeoutException: Could not connect to 127.0.0.1:11211
我知道了,不用回复了