首页 新闻 会员 周边 捐助

使用 EnyimMemcachedCore的问题

0
悬赏园豆:50 [已解决问题] 解决于 2018-02-25 18:44

报这样的错误:

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()

Shendu.CC的主页 Shendu.CC | 老鸟四级 | 园豆:2138
提问于:2018-02-25 18:00
< >
分享
最佳答案
0

这个错误是因为dns解析失败,需要在 hosts 中添加 memcached 的解析

EnyimMemcachedCore 的配置详见: https://github.com/cnblogs/EnyimMemcachedCore/blob/dotnetcore/README.mdown

收获园豆:50
dudu | 高人七级 |园豆:30778 | 2018-02-25 18:05

是解析到localhost吗:

System.TimeoutException: Could not connect to 127.0.0.1:11211

Shendu.CC | 园豆:2138 (老鸟四级) | 2018-02-25 18:18

我知道了,不用回复了

 

Shendu.CC | 园豆:2138 (老鸟四级) | 2018-02-25 18:27
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册