【问题标题】:How do I connect to Google's App Engine Shared Memache service from a Rails standard environment?如何从 Rails 标准环境连接到 Google 的 App Engine Shared Memache 服务?
【发布时间】: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


    【解决方案1】:

    很遗憾,不再推荐使用 Memcache 服务。我发现它仅适用于 Python 2.7、Java 8 和 PHP 5。

    你可以找到它的文档here

    我希望它会有所帮助......

    【讨论】:

      猜你喜欢
      • 2018-10-07
      • 2018-03-29
      • 2018-07-01
      • 1970-01-01
      • 2016-09-26
      • 1970-01-01
      • 1970-01-01
      • 2018-03-12
      • 2021-04-08
      相关资源
      最近更新 更多