【发布时间】:2020-08-10 11:52:42
【问题描述】:
我有一个在 Google Cloud 的 App Engine 标准环境中运行的 Rails 应用。我希望能够连接到 App Engine 提供的 Memcache 服务,但我不知道如何连接到它。我已将config/environments/production.rb 设置为使用内存缓存存储:
config.cache_store = :mem_cache_store, ENV['MEMCACHE_SERVERS']
我为MEMCACHE_SERVERS 变量设置了什么值?我在 Google Cloud Console 或文档中的任何地方都找不到这个。我能找到的唯一花絮是“flex 环境不支持 Memcache”,这没有使用。任何帮助将不胜感激。
【问题讨论】:
标签: ruby-on-rails google-app-engine google-cloud-platform memcached