google app engine - GAE Memcached API -



google app engine - GAE Memcached API -

i followed https://developers.google.com/appengine/docs/python/memcache/usingmemcache, , got memcached work.

but have problem when seek update cache before expires. example, after:

"memcache.add('key', data, 60000000000)"

if want update info stores in "key"

i hoping there api of

"memcache.update('key', newdata, 60000000000)" (no)

i tried add together again:

"memcache.add('key', newdata, 60000000000)"

but doesn't work. didn't replace previous one.

anyone can give me ideas how it?

i know there

"memcahed.flush_all()"

but flush whole cache.

use memcache.set('key', data, 60000000000) set value, regardless of previous contents in cache. see:

https://developers.google.com/appengine/docs/python/memcache/functions

google-app-engine memcached

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -