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
Post a Comment