AWS memcached存储始终返回false

时间:2018-04-23 10:18:47

标签: c# asp.net memcached elastic-cache

我在webconfig中有以下设置

 <sectionGroup name="enyim.com">
      <!-- Memcached -->
      <section name="memcached" type="Enyim.Caching.Configuration.MemcachedClientSection,Enyim.Caching" />
    </sectionGroup>

<enyim.com>
    <memcached protocol="Binary">
      <servers>
        <add address="endpoint" port="15651"></add>
      </servers>
    </memcached>
  </enyim.com>

代码

var mc = new MemcachedClient();
                var stat = mc.Store(StoreMode.Set, "Hello", "World");

始终为假

MemcachedClientConfiguration config = new MemcachedClientConfiguration();
                config.AddServer("endpoint", 134311);
                config.Protocol = MemcachedProtocol.Binary;
                var mc = new MemcachedClient(config);
                var stat = mc.Store(StoreMode.Set, "Hello", "World");

始终为假

在本地设置之后,我得到了一些恐怖

始终为假

我缺少什么

0 个答案:

没有答案