gpt4 book ai didi

python-3.x - 从 python3.7 运行时连接到 Google App Engine 共享内存缓存

转载 作者:太空宇宙 更新时间:2023-11-03 15:26:47 25 4
gpt4 key购买 nike

Google App Engine 在测试版基础上支持 Python 3.7 运行时,但我不知道如何从该运行时连接到 appengine 内存缓存。文档在这个问题上出奇地沉默。

以下是 python2.7 的文档:https://cloud.google.com/appengine/docs/standard/python/memcache/不过注意python3.7是灰色的。有谁知道如何在 python3.7 中连接到此服务?

最佳答案

内存缓存是 documented对于 Python3.7 运行时不可用:

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.

更新:

文档已更新,现在推荐使用 Google 的 Cloud MemoryStore [for Redis] 创建应用程序缓存。

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

请注意,与 Memcache 不同,Cloud Memorystore 是 not free .

关于python-3.x - 从 python3.7 运行时连接到 Google App Engine 共享内存缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52846557/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com