title: net.spy.memcached.OperationTimeoutException: Timeout waiting for value
body: <p>I am storing Set of values into the memcached client with key as setOfKeys.
  I am putting the value in the memcached as follows</p>
  
  <pre><code>Set&lt;String&gt; keys=new HashSet&lt;String&gt;();
  mMemcachedClient = new MemcachedClient(new BinaryConnectionFactory(),
                  AddrUtil.getAddresses("172.22.65.111:11211 172.22.65.11:11211"));
  
  public void put(Object key, Object value) throws Result {
  
          try {
              synchronized (mMemcachedClient) {
                  this.keys.add(key.toString());
  
                  if(keys.size()==1){
                      mMemcachedClient.set(String.valueOf(hg.hash("setOfKeys")),
                              7200, keys);
                  }
                  else{
                      mMemcachedClient.replace(String.valueOf(hg.hash("setOfKeys")),
                              7200, keys);
                  }
                  mMemcachedClient.set(String.valueOf(hg.hash(key.toString())),
                          7200, value);
              }
          } catch (Excep`enter code here`tion ex) {`enter code here`
              mLogger.error(ex.getMessage());
              throw new Result("ERROR_PUT_MEMCACHED_INTO_CACHE");
          }
      }
  </code></pre>
  
  <p>But when i try to fetch setOfKeys from the cache as follows it give me the error </p>
  
  <p><code>net.spy.memcached.OperationTimeoutException: Timeout waiting for value</code></p>