title: Unable to get Enyim.Caching MemcachedClient to work with Couchbase
body: <p>I realize that Couchbase provides a client to their memcached server, but I'm trying to get the enyim.caching client to work.</p>
  
  <p>Here's my trivial c# code that uses the Couchbase client (which works) and then pretty much the same thing with the enyim MemcachedClient:</p>
  
  <pre><code>class Program
  {
      static void Main(string[] args)
      {
          var client = new CouchbaseClient();
  
          client.Store(StoreMode.Set, "somekey", "somevalue");
  
          var somevalue = client.Get&lt;string&gt;("somekey");
  
          Console.WriteLine(somevalue);
          Console.ReadLine();
  
          var mclient = new MemcachedClient();
          mclient.Store(StoreMode.Set, "Hello", "World");
          var myVal = mclient.Get&lt;string&gt;("Hello");
          Console.WriteLine(myVal);
          Console.ReadLine();
      }
  }
  </code></pre>
  
  <p>Here's my app.config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
      &lt;configSections&gt;
        &lt;section name="couchbase" type="Couchbase.Configuration.CouchbaseClientSection, Couchbase"/&gt;
        &lt;sectionGroup name="enyim.com"&gt;
          &lt;section name="memcached" type="Enyim.Caching.Configuration.MemcachedClientSection, Enyim.Caching" /&gt;      
        &lt;/sectionGroup&gt;
      &lt;/configSections&gt;
      &lt;couchbase&gt;
        &lt;servers bucket="default" bucketPassword="myPassword"&gt;
          &lt;add uri="http://127.0.0.1:8091/pools"/&gt;
        &lt;/servers&gt;
      &lt;/couchbase&gt;
  &lt;enyim.com&gt;
    &lt;memcached&gt;
      &lt;servers&gt;
        &lt;add address="127.0.0.1" port="8091" /&gt;
      &lt;/servers&gt;
      &lt;socketPool minPoolSize="10" maxPoolSize="100" connectionTimeout="00:10:00" deadTimeout="00:02:00" /&gt;
      &lt;authentication type="Enyim.Caching.Memcached.PlainTextAuthenticator, Enyim.Caching" zone="" userName="Administrator" password="myPassword" /&gt;
    &lt;/memcached&gt;
  &lt;/enyim.com&gt;
  &lt;startup&gt;
    &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
  &lt;/startup&gt;  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>When I step through the code, the Couchbase client appears to work fine.  The Get method returns "somevalue" as expected.  The code also happily steps through the MemcachedClient code, but when I step through the Store method, it hangs for 10 seconds (I think that's the timeout) and then the myVal value returns as null.  No errors are thrown.</p>
  
  <p>I suspect the problem revolves around the <code>zone</code> value in the authentication node for memcached in the config.  In the DemoApp code that is in the enyim.caching source code (retrieved from Github), zone is never specified, but enyim throws an error if the zone isn't provided - i.e. the DemoApp doesn't work as is because zone isn't provided.</p>
  
  <p>I'm not sure this is the problem, but I do know that I can't leave zone out, but I don't know what to use for that value.  I've seen an example where 'AUTHZ' was used, but that doesn't seem to make any difference.</p>
  
  <p>Does anyone see what I'm doing wrong here?  Any help is appreciated!  :)</p>