【发布时间】:2020-10-03 00:26:01
【问题描述】:
我在应用引擎 api 的 gae 中使用 memcache,它的文档没有提供任何设置到期时间的信息,但它每小时都会重置。 https://cloud.google.com/appengine/docs/standard/python/refdocs/google.appengine.api.memcache.html#google.appengine.api.memcache.Client.incr
from google.appengine.api import memcache
def count(key):
newVal = memcache.incr(key,delta=1,initial_value=1)
return newVal
我希望该值持续 2 天,我怎样才能达到相同的效果?
【问题讨论】:
标签: python-2.7 google-app-engine caching memcached