title: GAE Memcached API
body: <p>I followed <a href="https://developers.google.com/appengine/docs/python/memcache/usingmemcache" rel="nofollow">https://developers.google.com/appengine/docs/python/memcache/usingmemcache</a>, and got memcached work.</p>
  
  <p>but I have a problem when I try to update cache before it expires.
  for example, after:</p>
  
  <pre><code>"memcache.add('key', data, 60000000000)"
  </code></pre>
  
  <p>if I want to update the information stores in "key"</p>
  
  <p>I was hoping there was an API of </p>
  
  <blockquote>
    <p>"memcache.update('key', newData, 60000000000)" (NO)</p>
  </blockquote>
  
  <p>I tried to add again:</p>
  
  <blockquote>
    <p>"memcache.add('key', newData, 60000000000)"</p>
  </blockquote>
  
  <p>but it doesn't work. It didn't replace the previous one.</p>
  
  <p>Anyone can give me some ideas how to do it?</p>
  
  <p>I know there is a </p>
  
  <blockquote>
    <p>"memcahed.flush_all()"</p>
  </blockquote>
  
  <p>But it flush the whole cache.    </p>