Search code examples
python-3.xgoogle-app-enginememcachedgoogle-app-engine-python

Connect to Google App Engine shared memcached from python3.7 runtime


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?


Solution

  • Memcache is documented as being unavailable for the Python3.7 runtime:

    The Memcache service is not available in Python 3. If you need access to a hosted caching service, you can use a third party memcache service like Redis Labs Cloud.

    Update:

    The documentation has been updated, and now recommends using Google's Cloud MemoryStore [for Redis] to create an application cache.

    To build an application cache, create a Cloud Memorystore instance and connect it to your app using Serverless VPC Access.

    Note that unlike Memcache, Cloud Memorystore is not free.