CacheManager memcached configuration

风格不统一 提交于 2019-12-06 06:48:36

Regarding the error for the <cache name="memcached"> section , most likely you have not defined any section inside your configuration file with that name. At least there is no section like that coming from CacheManager nor from enyim.

Then regarding the memcached handle. The name of the handle must match the section so that CacheManager can pick up the configuration. The default is enyim.com/memcached which you have. So you could either put enyim.com/memcached or default as the name of the memcached cache handle.

Like

CacheFactory.Build("memcached", settings => settings
    .WithMemcachedCacheHandle("enyim.com/memcached"));

Let me know if this works for you.

I know this is not very well documented, yet. I might add something when I find some time ;)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!