akwei / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Using Library "Enyim.Caching.dll", Data is not stored in memcached #413

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Configuration in Web.config

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

 <enyim.com>
    <memcached>
      <servers>
        <add address="::1" port="11211" />
        -->
  <!-- localhost -->
  <!--
        <add address="::1" port="11211" />
        -->
  <!-- localhost -->
  <!--
      </servers>
      <socketPool minPoolSize="10" maxPoolSize="100" connectionTimeout="00:00:05" deadTimeout="00:02:00" />
    </memcached>
  </enyim.com>

Implementation in C# Code

MemcachedClient client = new MemcachedClient()

if(client.Get<string>("key") !=null)
{
  return "X";
}
else
{
  client.Store(StoreMode.set,"key","Test");
  return "Y"
}

When I debug the code It always goes to else condition. 

Let me know if any points i have missed

Thanks
Arbind Singh

Original issue reported on code.google.com by arbind.s...@v2solutions.com on 27 May 2015 at 2:15