Google App Engine supports a Python 3.7 runtime on a beta basis, but I cannot figure out how to connect to the appengine memcache from that runtime. The documentation is strangely silent on the issue.
Here are the docs for python2.7: https://cloud.google.com/appengine/docs/standard/python/memcache/ However, note that python3.7 is grayed out. Does anyone know how to connect to this service in python3.7?
2
Answers
My sense from exploring further is that the memcache API is not going to be supported going forward. Instead, they're expecting people to transition to standard backends hosted in the cloud. For example, it's possible to get a free Redis instance with 30MB of storage turned on in the cloud. You can use that as a cache the same way you would use memcached. I tested this and found performance acceptable:
This was using the nodejs8 runtime, but I assume the Python 3.7 runtime would be no different. The tutorial on how to set this up is here.
Memcache is documented as being unavailable for the Python3.7 runtime:
Update:
The documentation has been updated, and now recommends using Google’s Cloud MemoryStore [for Redis] to create an application cache.
Note that unlike Memcache, Cloud Memorystore is not free.